Sunday, June 7, 2015

IS-IS on Quagga + IOS on GNS3 + QEMU

Quagga-1

box login:
Login to Core Linux
Username "tc", password is not set
box login: tc
 (°-
 //\   Core is distributed with ABSOLUTELY NO WARRANTY.
 v_/_           www.tinycorelinux.com


tc@box:~$
tc@box:~$ sudo hostname box1
tc@box1:~$ vtysh

Hello, this is Quagga (version 0.99.22.4).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

box1# config t
box1(config)# int eth0
box1(config-if)# ip address 192.168.1.2/24
box1(config-if)# no shut
box1(config-if)# exit
box1(config)# int eth1
box1(config-if)# ip address 192.168.2.2/24
box1(config-if)# no shut
box1(config-if)# exit
box1(config)# int eth7
box1(config-if)# ip address 192.168.100.1/24
box1(config-if)# no shut
box1(config-if)# exit
box1(config)# router isis 1
box1(config-router)# router-id 9.9.9.9
box1(config)# router isis 1
box1(config-router)# net 49.0001.0000.0000.0008.00
box1(config-router)# is-type  level-2-only
box1(config-router)# exit
ibox1(config)# int eth0
box1(config-if)# ip router isis 1
box1(config-if)# exit
box1(config)# int eth1
box1(config-if)# ip router isis 1
box1(config-if)# exit
box1(config)# int eth7
box1(config-if)# ip router isis 1
box1(config-if)# end


R1

R1#config t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router isis 1
R1(config-router)#net 49.0001.0000.0000.0001.00
R1(config-router)#metric-style wide
R1(config-router)#is-type level-2-only
R1(config-router)#exit
R1(config)#int fa 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#ip router isis 1
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#int loop 0
R1(config-if)#ip address 172.17.1.1 255.255.255.0
R1(config-if)#ip router isis 1
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#int loop 1
R1(config-if)#ip address 172.17.2.1 255.255.255.0
R1(config-if)#ip router isis 1
R1(config-if)#no shut
R1(config-if)#end
R1#

R1#show clns is-neighbor

System Id      Interface   State  Type Priority  Circuit Id         Format
box1           Fa0/0       Up     L2   64        R1.01              Phase V
R1#show isis topology


IS-IS paths to level-2 routers
System Id            Metric     Next-Hop             Interface   SNPA
R1                   --
box1                 10         box1                 Fa0/0       0000.ab57.8f00
R1#show isis database

IS-IS Level-2 Link State Database:
LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL
R1.00-00            * 0x00000006   0xAB35        1140              0/0/0
R1.01-00            * 0x00000001   0x0ABA        1112              0/0/0
box1.00-00            0x00000007   0x55BB        1133              0/0/0
R1#show isis database detail

IS-IS Level-2 Link State Database:
LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL
R1.00-00            * 0x00000006   0xAB35        1137              0/0/0
  Area Address: 49.0001
  NLPID:        0xCC
  Hostname: R1
  IP Address:   172.17.1.1
  Metric: 10         IS-Extended R1.01
  Metric: 10         IP 172.17.1.0/24
  Metric: 10         IP 172.17.2.0/24
  Metric: 10         IP 192.168.1.0/24
R1.01-00            * 0x00000001   0x0ABA        1110              0/0/0
  Metric: 0          IS-Extended R1.00
  Metric: 0          IS-Extended box1.00
box1.00-00            0x00000007   0x55BB        1129              0/0/0
  Area Address: 49.0001
  NLPID:        0xCC
  Hostname: box1
  IP Address:   9.9.9.9
  Router ID:    9.9.9.9
  Metric: 10         IP 192.168.2.0/24
  Metric: 10         IP 192.168.1.0/24
  Metric: 10         IP 192.168.100.0/24
  Metric: 10         IS-Extended R1.01
R1#
R1#show ip route isis
i L2 192.168.2.0/24 [115/20] via 192.168.1.2, FastEthernet0/0
i L2 192.168.100.0/24 [115/20] via 192.168.1.2, FastEthernet0/0
R1#

R1#ping 192.168.100.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.100.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/8/12 ms
R1#ping 192.168.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/12 ms


IS-IS Output on box1 (after box1 & R1 configuration)

box1# show isis neighbor
Area 1:
  System Id           Interface   L  State        Holdtime SNPA
  R1                  eth0        2  Up           10       c201.1330.0000
box1# show isis topology
Area 1:
IS-IS paths to level-2 routers that speak IP
Vertex               Type         Metric Next-Hop             Interface Parent
box1                                                                    NULL
192.168.2.0/24       IP internal  0                                     box1(4)
192.168.1.0/24       IP internal  0                                     box1(4)
192.168.100.0/24     IP internal  0                                     box1(4)
R1                   TE-IS        10     R1                   eth0      box1(4)
R1                   pseudo_TE-IS 20     R1                   eth0      R1(4)
172.17.1.0/24        IP TE        20     R1                   eth0      R1(4)
172.17.2.0/24        IP TE        20     R1                   eth0      R1(4)
192.168.1.0/24       IP TE        20     R1                   eth0      R1(4)


box1# show isis database
Area 1:
IS-IS Level-2 link-state database:
LSP ID                  PduLen  SeqNumber   Chksum  Holdtime  ATT/P/OL
R1.00-00                   85   0x00000006  0xab35    1057    0/0/0
R1.01-00                   51   0x00000001  0x0aba    1030    0/0/0
box1.00-00           *     93   0x00000007  0x55bb    1053    0/0/0
    3 LSPs

box1# show isis database  detail
Area 1:
IS-IS Level-2 link-state database:
LSP ID                  PduLen  SeqNumber   Chksum  Holdtime  ATT/P/OL
R1.00-00                   85   0x00000006  0xab35    1055    0/0/0
  Area Address: 49.0001
  NLPID       : 0xCC
  Hostname    : R1
  IPv4 Address: 172.17.1.1
  Metric      : 10       IS-Extended   : R1.01
  Metric      : 10       IPv4-Extended : 172.17.1.0/24
  Metric      : 10       IPv4-Extended : 172.17.2.0/24
  Metric      : 10       IPv4-Extended : 192.168.1.0/24

R1.01-00                   51   0x00000001  0x0aba    1028    0/0/0
  Metric      : 0        IS-Extended   : R1.00
  Metric      : 0        IS-Extended   : box1.00

box1.00-00           *     93   0x00000007  0x55bb    1051    0/0/0
  Area Address: 49.0001
  NLPID       : 0xCC
  Hostname    : box1
  Router ID   : 9.9.9.9
  IPv4 Address: 9.9.9.9
  Metric      : 10       IS-Extended   : R1.01
  Metric      : 10       IPv4-Extended : 192.168.2.0/24
  Metric      : 10       IPv4-Extended : 192.168.1.0/24
  Metric      : 10       IPv4-Extended : 192.168.100.0/24

    3 LSPs

box1# show ip route isis
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, A - Babel,
       > - selected route, * - FIB route

I>* 172.17.1.0/24 [115/20] via 192.168.1.1, eth0, 00:03:42
I>* 172.17.2.0/24 [115/20] via 192.168.1.1, eth0, 00:03:27
I   192.168.1.0/24 [115/20] via 192.168.1.1 inactive, 00:03:56


box1# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=255 time=33.368 ms
64 bytes from 192.168.1.1: seq=1 ttl=255 time=10.215 ms

--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 10.215/21.791/33.368 ms
box1# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: seq=0 ttl=64 time=3.311 ms
64 bytes from 192.168.1.2: seq=1 ttl=64 time=0.796 ms

--- 192.168.1.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.796/2.053/3.311 ms
box1# ping 172.17.1.1
PING 172.17.1.1 (172.17.1.1): 56 data bytes
64 bytes from 172.17.1.1: seq=0 ttl=255 time=28.862 ms

--- 172.17.1.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 28.862/28.862/28.862 ms
box1# ping 172.17.2.1
PING 172.17.2.1 (172.17.2.1): 56 data bytes
64 bytes from 172.17.2.1: seq=0 ttl=255 time=15.416 ms

--- 172.17.2.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 15.416/15.416/15.416 ms

No comments:

Post a Comment