Static Routing Exercise Mark Tinka What will the
- Slides: 23
Static Routing Exercise Mark Tinka
What will the exercise involve? p Unix network interface configuration p Cisco network interface configuration p Static routes p Default route p Testing
Routing is done based on destination IP address p Without routing, interface can only reach destinations via ARP p Cannot reach a destination on another separate network without going through an intermediate device p A device with at least 2 interfaces can route p
Routing p Static routes n p dynamic routes n p specifically instructs router on which route to take to a particular destination network learnt via routing protocols implemented on routers default routes n route that instructs a machine where to send packets for destinations that are not on the routing table
Static Routing p Advantages p Simple to configure and maintain Secure as only defined routes can be accessed Bandwidth is not used for sending routing updates Disadvantages Manual update of routes after changes Explicit addition of routes for all networks
IP Routing Configuration Static/default route example To Internet 172. 16. 3. 1 172. 16. 3. 2 172. 16. 1. 0 255. 0 172. 16. 2. 2 172. 16. 2. 1 ip route 172. 16. 1. 0 255. 0 172. 16. 2. 1 - STATIC ip route 0. 0 172. 16. 3. 1 - DEFAULT
Classroom Network Layout SWITCH A C E G I HUB PC HUB Router HUB PC Router HUB PC PC HUB Router PC Router HUB PC PC Router PC B D F H J
Address Assignments SWITCH. 1. 2 A B 196. 200. 220. 32/28 . 3 C 196. 200. 220. 48/28 E . 5 196. 200. 220. 80/28 . 7 G 196. 200. 220. 112/28 I 196. 200. 220. 144/28 . 9 196. 200. 220. 0/28 196. 200. 220. 16/28 . 4 D 196. 200. 220. 64/28 . 6 F 196. 200. 220. 96/28 . 8 H 196. 200. 220. 128/28 . 10 J 196. 200. 220. 160/28
Address Assignment You already have an IP address for your router’s backbone link (A=. 1, B=. 2, …) p You have a /28 for your local network (PC and router connected to hub) p Assign your own host addresses from your local /28 network p
Free. BSD Network Interface Configuration p configure interface on Unix host p n n n ifconfig xl 0 inet n. n netmask m. m xl 0 is interface name n. n is IP address m. m is netmask
Connect PC to router console port Connect cable to console port on router, serial port on Free. BSD box p Use the tip command to connect your keyboard and screen to the serial port p n e. g. bash$ tip com 1 You may have to edit /etc/remote p See man pages for tip(1) and remote(5) p
Cisco Router Network Interface Configuration p configure backbone interface on cisco router conf t interface ethernet 0/0 ip address n. n m. m n n n p ethernet 0/0 is interface name n. n is IP address m. m is netmask configure local interface on cisco router n ethernet 0/1
Cisco Router Network Interface Configuration p Cisco global config should always include: ip classless ip subnet-zero no ip domain-lookup p Cisco interface config should usually include: no no shutdown ip proxy-arp ip redirects ip directed-broadcast
Test Connectivity PC can ping local interface of router p Router can ping PC p PC cannot ping backbone interface of router p Router can ping other routers p PC cannot ping other routers or other PCs p
Configure a default route p Add route on PC route add default g. g n p g. g is IP address of gateway (which is on cisco router) Display forwarding table netstat -rn
Test connectivity All PCs can now reach backbone IP address of own row p Still can’t reach other rows p n n why? Do a traceroute to troubleshoot
Configure static routes for the remaining classroom desks p On router, add static routes to other rows n next hop is backbone interface of other row’s router ip route n. n m. m g. g p Repeat several times until complete
Test Connectivity p p All routers can reach all PCs All PCs can reach all backbone IP addresses All PCs can reach PCs in other rows Test with traceroute
Address Assignments E 2 Router SWITCH 196. 200. 220. 0/28 . 1. 2 A B 196. 200. 220. 32/28 . 3 C 196. 200. 220. 48/28 E . 5 196. 200. 220. 80/28 . 7 G 196. 200. 220. 112/28 I 196. 200. 220. 144/28 . 9 196. 200. 220. 0/28 196. 200. 220. 16/28 . 4 D 196. 200. 220. 64/28 . 6 F 196. 200. 220. 96/28 . 8 H 196. 200. 220. 128/28 . 10 J 196. 200. 220. 160/28
Configure static routes to classroom router p On router, remove all static routes no ip route n. n m. m g. g p Repeat many times p Add default route to classroom router n next hop is backbone router ip route 0. 0 g. g
Test Connectivity p p p p p All routers can reach all PCs All PCs can reach all backbone IP addresses All PCs can reach PCs in other rows Test with traceroute All static routes have now been added on classroom router Global: enable secret e 2@fnog Interface: interface ethernet 0/0 ip address n. n m. m Router: router ospf 1 network n. n w. w area 0 Line: line vty 0 4
Edit Free. BSD the ‘/etc/rc. conf’ file On production machines, add lines to /etc/rc. conf to configure network on reboot p hostname="porcupine. tomato. example" p ifconfig_xl 0="inet X. X netmask Y. Y" p defaultrouter=”G. G" p See /etc/default/rc. conf for more information p
Static Routing Exercise The End
- Tinka tinka sukh
- Mark tinka
- Tinka design
- Goodrich method is used for
- Hydrologic continuity equation
- Routing in physical design
- Jozef tinka
- Tinka bačič
- Tabel routing static
- Rip static
- Konfigurasi routing static
- Electronic engineering
- Define isometric exercise
- Tool marks examples
- Hình ảnh bộ gõ cơ thể búng tay
- Slidetodoc
- Bổ thể
- Tỉ lệ cơ thể trẻ em
- Gấu đi như thế nào
- Chụp phim tư thế worms-breton
- Chúa yêu trần thế
- Môn thể thao bắt đầu bằng từ chạy
- Thế nào là hệ số cao nhất
- Các châu lục và đại dương trên thế giới