Lab: Hide Transit Subnets in IS-IS Networks
1 hour ago
Day to day life of a kenyan Networker.
CCIE#28352
!the loopback and fastethernet are not really required but we'll use their addresses to confirm !routing updates. interface Loopback0 ip address 172.20.1.1 255.255.255.255 interface FastEthernet0/0 ip address 20.20.20.1 255.255.255.0 duplex auto speed auto ! used for the point to point interface Serial1/0 ip address 192.168.10.1 255.255.255.252 serial restart-delay 0 no dce-terminal-timing-enable ! used for frame relay to R1 interface Serial1/1.105 point-to-point ip address 192.168.20.1 255.255.255.252 frame-relay interface-dlci 105 !Note: we are sending routing updates through all our interfaces. you can do uncomment !the commented lines to ensure updates go !out the two connected interfaces: router rip version 2 !passive-interface default !no passive-interface Serial1/0 !no passive-interface Serial1/1.105 network 20.0.0.0 !the ethernet network network 172.20.0.0 !the loopback network 192.168.10.0 ! the ffr network network 192.168.20.0 ! the serial network I had thought removing this last two networks and ! establishing unicast neighbors using neighbor statemtnes would work but something didn't ! work out. I'll revisit this some day. no auto-summary |
interface Loopback0 ip address 172.20.2.1 255.255.255.255 interface FastEthernet0/0 ip address 10.10.10.1 255.255.255.0 duplex auto speed auto interface Serial1/0 ip address 192.168.10.2 255.255.255.252 serial restart-delay 0 no dce-terminal-timing-enable interface Serial1/1.501 point-to-point ip address 192.168.20.2 255.255.255.252 frame-relay interface-dlci 501 router rip version 2 ! just to show you how you can filter out outgoing updates, I used the reverse of the rip !configuration above (R0) on the passive-interface statement. The one below suppresses !messages going out the fastethernet and loopback interfaces --Loopback?? ! passive-interface FastEthernet0/0 ! passive-interface Loopback0 network 10.0.0.0 network 172.20.0.0 network 192.168.10.0 network 192.168.20.0 no auto-summary |
R1#sh ip int br | exclude una Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.10.10.1 YES manual up up Serial1/0 192.168.10.2 YES manual up up Serial1/1.501 192.168.20.2 YES manual up up Loopback0 172.20.2.1 YES manual up up R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#router rip R1(config-router)#no offset-list 0 out 14 Serial1/0 R1(config-router)#no offset-list 1 in 2 Serial1/1.501 R1(config-router)# R1(config-router)#^Z R1#clear ip ro *Mar 1 00:11:17.931: %SYS-5-CONFIG_I: Configured from console by console* R1#sh ip protocols Routing Protocol is "rip" ! The running Protocol Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Sending updates every 30 seconds, next due in 15 seconds !This is the interval Between updates Invalid after 180 seconds, hold down 180, flushed after 240 !'invalid after' - after 180 seconds, the route will be declared invalid Redistributing: rip ! redistributed for protocols Default version control: send version 2, receive version 2 ! version Interface Send Recv Triggered RIP Key-chain FastEthernet0/0 2 2 Serial1/0 2 2 Serial1/1.501 2 2 Loopback0 2 2 !Interfaces RIP is running on. You can change this using the passive-interface command Automatic network summarization is not in effect Maximum path: 4 !This is the number as seen under interfaces above. Note the loopback interface is counted :-) Routing for Networks: 10.0.0.0 172.20.0.0 192.168.10.0 192.168.20.0 ! Networks being RIP is operationg/routing for. I had always assumed using unicast neighbors would negate the need for putting in networks for point to point links. I'll test this again and probably revert later on. Routing Information Sources: Gateway Distance Last Update 192.168.10.1 120 00:00:18 192.168.20.1 120 00:00:13 Distance: (default is 120) *Important, enable 'debug ip rip' and 'debug ip rip events' for a clearer visibility of whats going on..... |
R0(config-router)#do sh ip int br Interface IP-Address OK? Method Status Protocol FastEthernet0/0 20.20.20.1 YES manual up up Serial1/0 192.168.10.1 YES manual up up Serial1/1.105 192.168.20.1 YES manual up up Loopback0 172.20.1.1 YES manual up up to verify reachability: ping all the other router's addresses. I use tcl both for dempnstration and to make life easier - I assume for the lab I'll have many many 'places' to ping and a script will come in handy: R0#tclsh R0(tcl)# R0(tcl)#! R0(tcl)#foreach address { +>(tcl)#10.10.10.1 +>(tcl)#192.168.10.2 +>(tcl)#192.168.20.2 +>(tcl)#172.20.2.1 +>(tcl)#} { +>(tcl)#Ping $address +>(tcl)#} Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 108/156/248 ms Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 92/130/188 ms Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.20.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 68/148/212 ms Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.20.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 100/123/164 ms R0(tcl)#tclquit R0#sh ip route rip 172.20.0.0/32 is subnetted, 2 subnets R 172.20.2.1 [120/1] via 192.168.20.2, 00:00:11, Serial1/1.105 [120/1] via 192.168.10.2, 00:00:11, Serial1/0 10.0.0.0/24 is subnetted, 1 subnets R 10.10.10.0 [120/1] via 192.168.20.2, 00:00:11, Serial1/1.105 [120/1] via 192.168.10.2, 00:00:11, Serial1/0 |