Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration u Static routes u Default route u Testing.
Post on 27-Dec-2015
Static Routing ExerciseUnix network interface configurationCisco network interface configurationStatic routesDefault routeTesting
Address AllocationYou already have an IP address for your routers backbone link (A=.17, B=.18, )You have a /28 for your local network (PC and router connected to hub)Allocate your own host addresses from your local /28 network
Network interface configuration - FreeBSDconfigure interface on Unix hostifconfig fxp0 inet n.n.n.n netmask m.m.m.mfxp0 is interface namen.n.n.n is IP addressm.m.m.m is netmask
Connect PC to router consoleConnect cable to console port on router, serial port on FreeBSD boxUse the tip command to connect your keyboard and screen to the serial portYou may have to edit /etc/remoteSee man pages for tip(1) and remote(5)
Network interface configuration - Ciscoconfigure backbone interface on cisco routerconf tinterface ethernet0/0ip address n.n.n.n m.m.m.methernet0/0 is interface namen.n.n.n is IP addressm.m.m.m is netmaskconfigure local interface on cisco routerethernet0/1
Network interface configuration - CiscoCisco global config should always include:ip classlessip subnet-zeroCisco interface config should usually include:no shutdownno ip proxy-arpno ip redirects
Test connectivityPC can ping local interface of routerRouter can ping PCPC cannot ping backbone interface of routerRouter can ping other routersPC cannot ping other routers or other PCs
Add default routeAdd route on PCroute add default g.g.g.gg.g.g.g is IP address of gateway (which is on cisco router)Display forwarding tablenetstat -f inet -rn
Test connectivityAll PCs can now reach backbone IP address of own rowStill cant reach other rowswhy?
Add static routes to other rowsOn router, add static routes to other rowsnext hop is backbone interface of other rows routerip route n.n.n.n m.m.m.m g.g.g.gRepeat many times
Test connectivityAll routers can reach all PCsAll PCs can reach all backbone IP addressesAll PCs can reach PCs in other rowsTest with traceroute
Edit FreeBSD /etc/rc.confDont do this on classroom machinesOn production machines, add lines to /etc/rc.conf to configure network on reboothostname="porcupine.tomato.example"ifconfig_fxp0="inet 192.0.2.5 netmask 255.255.255.224"defaultrouter="192.0.2.1"See /etc/default/rc.conf for more information