Published 6月 03, 2018 by with 0 comment

JNCIS-SP Lab: Configuring Basic IS-IS



Requirements:
This lab shows how to configure  basic L1/L2 router of IS-IS.



Configuration:
1. Basic & interface configuration.
set system host-name JNCIE
set system root-authentication encrypted-password "$1$Luohd5lf$6ikSsNi1iEX/147eHbqm7."

set logical-systems R1 interfaces em1 unit 12 vlan-id 12
set logical-systems R1 interfaces em1 unit 12 family inet address 8.8.12.1/24
set logical-systems R1 interfaces lo0 unit 1 family inet address 1.1.1.1/32

set logical-systems R2 interfaces em2 unit 12 vlan-id 12
set logical-systems R2 interfaces em2 unit 12 family inet address 8.8.12.2/24
set logical-systems R2 interfaces em2 unit 23 vlan-id 23
set logical-systems R2 interfaces em2 unit 23 family inet address 8.8.23.2/24
set logical-systems R2 interfaces lo0 unit 2 family inet address 2.2.2.2/32

set logical-systems R3 interfaces em3 unit 23 vlan-id 23
set logical-systems R3 interfaces em3 unit 23 family inet address 8.8.23.3/24
set logical-systems R3 interfaces lo0 unit 3 family inet address 3.3.3.3/32

set interfaces em1 vlan-tagging
set interfaces em2 vlan-tagging
set interfaces em3 vlan-tagging


2. Configure a Network Entity Title (NET) on router loopback interface (Lo0).
set logical-systems R1 interfaces lo0 unit 1 family iso address 47.0001.0000.0000.0001.00

set logical-systems R2 interfaces lo0 unit 2 family iso address 47.0001.0000.0000.0002.00

set logical-systems R3 interfaces lo0 unit 3 family iso address 47.0002.0000.0000.0003.00


3. Configure the interfaces to recognize the IS-IS packets.
set logical-systems R1 interfaces em1 unit 12 family iso

set logical-systems R2 interfaces em2 unit 12 family iso
set logical-systems R2 interfaces em2 unit 23 family iso

set logical-systems R3 interfaces em3 unit 23 family iso


4. The final step is to enable IS-IS routing protocol on each logical-systems.
Moreover, in this lab,
Logical-systems R1 use only level 1 IS-IS packets to communicate with R2.
Logical-systems R2 use both level 1 & level 2 IS-IS packets (by default) which to communicate with R1 & R3.
Logical-systems R3 use only level 2 IS-IS packets to communicate with R2.

set logical-systems R1 protocols isis level 2 disable
set logical-systems R1 protocols isis interface em1.12
set logical-systems R1 protocols isis interface lo0.1

set logical-systems R2 protocols isis interface all

set logical-systems R3 protocols isis level 1 disable
set logical-systems R3 protocols isis interface em3.23
set logical-systems R3 protocols isis interface lo0.3


Verification:
root@JNCIE> show isis adjacency logical-system R1  
Interface             System         L State        Hold (secs) SNPA
em1.12                JNCIE-R2       1  Up                    6  0:c:29:76:19:cc

root@JNCIE>

root@JNCIE> show isis adjacency logical-system R2  
Interface             System         L State        Hold (secs) SNPA
em2.12                JNCIE-R1       1  Up                   19  0:c:29:76:19:c2
em2.23                JNCIE-R3       2  Up                    7  0:c:29:76:19:d6

root@JNCIE>

root@JNCIE> show isis adjacency logical-system R3  
Interface             System         L State        Hold (secs) SNPA
em3.23                JNCIE-R2       2  Up                   19  0:c:29:76:19:cc

root@JNCIE> 


root@JNCIE> show isis interface logical-system R1
IS-IS interface database:
Interface             L CirID Level 1 DR        Level 2 DR        L1/L2 Metric
em1.12                1   0x1 JNCIE-R2.02       Disabled               10/10
lo0.1                 0   0x1 Passive           Passive                 0/0

root@JNCIE>

root@JNCIE> show isis interface logical-system R2  
IS-IS interface database:
Interface             L CirID Level 1 DR        Level 2 DR        L1/L2 Metric
em2.12                3   0x2 JNCIE-R2.02       JNCIE-R2.00            10/10
em2.23                3   0x1 JNCIE-R2.00       JNCIE-R3.02            10/10
lo0.2                 0   0x1 Passive           Passive                 0/0

root@JNCIE>

root@JNCIE> show isis interface logical-system R3  
IS-IS interface database:
Interface             L CirID Level 1 DR        Level 2 DR        L1/L2 Metric
em3.23                2   0x2 Disabled          JNCIE-R3.02            10/10
lo0.3                 0   0x1 Passive           Passive                 0/0

root@JNCIE>


root@JNCIE> show isis hostname logical-system R1
IS-IS hostname database:
System ID      Hostname                                         Type
0000.0000.0001 JNCIE-R1                                         Static
0000.0000.0002 JNCIE-R2                                         Dynamic

root@JNCIE>

root@JNCIE> show isis hostname logical-system R2  
IS-IS hostname database:
System ID      Hostname                                         Type
0000.0000.0001 JNCIE-R1                                         Dynamic
0000.0000.0002 JNCIE-R2                                         Static
0000.0000.0003 JNCIE-R3                                         Dynamic

root@JNCIE>

root@JNCIE> show isis hostname logical-system R3  
IS-IS hostname database:
System ID      Hostname                                         Type
0000.0000.0001 JNCIE-R1                                         Dynamic
0000.0000.0002 JNCIE-R2                                         Dynamic
0000.0000.0003 JNCIE-R3                                         Static

root@JNCIE>


root@JNCIE> show isis route logical-system R1
 IS-IS routing table             Current version: L1: 11 L2: 4
IPv4/IPv6 Routes
----------------
Prefix             L Version   Metric Type Interface       NH   Via
0.0.0.0/0          1      11       10 int  em1.12          IPV4 JNCIE-R2         
2.2.2.2/32         1      11       10 int  em1.12          IPV4 JNCIE-R2         
8.8.23.0/24        1      11       20 int  em1.12          IPV4 JNCIE-R2         

root@JNCIE>

root@JNCIE> show isis route logical-system R2  
 IS-IS routing table             Current version: L1: 13 L2: 14
IPv4/IPv6 Routes
----------------
Prefix             L Version   Metric Type Interface       NH   Via
1.1.1.1/32         1      13       10 int  em2.12          IPV4 JNCIE-R1         
3.3.3.3/32         2      14       10 int  em2.23          IPV4 JNCIE-R3         

root@JNCIE>

root@JNCIE> show isis route logical-system R3  
 IS-IS routing table             Current version: L1: 3 L2: 13
IPv4/IPv6 Routes
----------------
Prefix             L Version   Metric Type Interface       NH   Via
1.1.1.1/32         2      13       20 int  em3.23          IPV4 JNCIE-R2         
2.2.2.2/32         2      13       10 int  em3.23          IPV4 JNCIE-R2         
8.8.12.0/24        2      13       20 int  em3.23          IPV4 JNCIE-R2         

root@JNCIE>


root@JNCIE> show isis database logical-system R1
IS-IS level 1 link-state database:
LSP ID                      Sequence Checksum Lifetime Attributes
JNCIE-R1.00-00                   0xc   0xf8d2     1075 L1
JNCIE-R2.00-00                   0xe   0xcdcc     1073 L1 L2 Attached
JNCIE-R2.02-00                   0xe   0x1d7f     1073 L1 L2
  3 LSPs

IS-IS level 2 link-state database:
  0 LSPs

root@JNCIE>

root@JNCIE> show isis database logical-system R2  
IS-IS level 1 link-state database:
LSP ID                      Sequence Checksum Lifetime Attributes
JNCIE-R1.00-00                   0xc   0xf8d2     1070 L1
JNCIE-R2.00-00                   0xe   0xcdcc     1072 L1 L2 Attached
JNCIE-R2.02-00                   0xe   0x1d7f     1072 L1 L2
  3 LSPs

IS-IS level 2 link-state database:
LSP ID                      Sequence Checksum Lifetime Attributes
JNCIE-R1.00-00                   0x3        0        0 L1 L2
JNCIE-R2.00-00                  0x10   0x4877     1074 L1 L2
JNCIE-R2.02-00                   0x4        0        0 L1 L2
JNCIE-R3.00-00                   0xa   0x205c     1072 L1 L2
JNCIE-R3.02-00                   0xe   0x8b0c     1072 L1 L2
  5 LSPs

root@JNCIE>

root@JNCIE> show isis database logical-system R3  
IS-IS level 1 link-state database:
  0 LSPs

IS-IS level 2 link-state database:
LSP ID                      Sequence Checksum Lifetime Attributes
JNCIE-R1.00-00                   0x3        0        0 L1 L2
JNCIE-R2.00-00                  0x10   0x4877     1070 L1 L2
JNCIE-R2.02-00                   0x4        0        0 L1 L2
JNCIE-R3.00-00                   0xa   0x205c     1072 L1 L2
JNCIE-R3.02-00                   0xe   0x8b0c     1072 L1 L2
  5 LSPs

root@JNCIE>


root@JNCIE> show route logical-system R1

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0.0.0.0/0          *[IS-IS/15] 00:05:17, metric 10
                    > to 8.8.12.2 via em1.12
1.1.1.1/32         *[Direct/0] 00:06:45
                    > via lo0.1
2.2.2.2/32         *[IS-IS/15] 00:05:22, metric 10
                    > to 8.8.12.2 via em1.12
8.8.12.0/24        *[Direct/0] 00:05:22
                    > via em1.12
8.8.12.1/32        *[Local/0] 00:05:22
                      Local via em1.12
8.8.23.0/24        *[IS-IS/15] 00:05:22, metric 20
                    > to 8.8.12.2 via em1.12

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

47.0001.0000.0000.0001/72              
                   *[Direct/0] 00:27:09
                    > via lo0.1
                                      
root@JNCIE>

root@JNCIE> show route logical-system R2  

inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32         *[IS-IS/15] 00:05:33, metric 10
                    > to 8.8.12.1 via em2.12
2.2.2.2/32         *[Direct/0] 00:05:33
                    > via lo0.2
3.3.3.3/32         *[IS-IS/18] 00:05:33, metric 10
                    > to 8.8.23.3 via em2.23
8.8.12.0/24        *[Direct/0] 00:05:33
                    > via em2.12
8.8.12.2/32        *[Local/0] 00:05:33
                      Local via em2.12
8.8.23.0/24        *[Direct/0] 00:05:33
                    > via em2.23
8.8.23.2/32        *[Local/0] 00:05:33
                      Local via em2.23

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

47.0001.0000.0000.0002/72              
                   *[Direct/0] 00:27:20
                    > via lo0.2       

root@JNCIE>

root@JNCIE> show route logical-system R3  

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32         *[IS-IS/18] 00:05:34, metric 20
                    > to 8.8.23.2 via em3.23
2.2.2.2/32         *[IS-IS/18] 00:05:39, metric 10
                    > to 8.8.23.2 via em3.23
3.3.3.3/32         *[Direct/0] 00:05:39
                    > via lo0.3
8.8.12.0/24        *[IS-IS/18] 00:05:39, metric 20
                    > to 8.8.23.2 via em3.23
8.8.23.0/24        *[Direct/0] 00:05:39
                    > via em3.23
8.8.23.3/32        *[Local/0] 00:05:39
                      Local via em3.23

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

47.0002.0000.0000.0003/72              
                   *[Direct/0] 00:27:26
                    > via lo0.3
                                      
root@JNCIE>


root@JNCIE> ping 2.2.2.2 logical-system R1 rapid  
PING 2.2.2.2 (2.2.2.2): 56 data bytes
!!!!!
--- 2.2.2.2 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.104/0.408/1.270/0.440 ms

root@JNCIE>

root@JNCIE> ping 3.3.3.3 logical-system R1 rapid  
PING 3.3.3.3 (3.3.3.3): 56 data bytes
!!!!!
--- 3.3.3.3 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.185/0.253/0.326/0.055 ms

root@JNCIE>

root@JNCIE> ping 1.1.1.1 logical-system R2 rapid  
PING 1.1.1.1 (1.1.1.1): 56 data bytes
!!!!!
--- 1.1.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.096/0.129/0.231/0.051 ms

root@JNCIE>

root@JNCIE> ping 3.3.3.3 logical-system R2 rapid  
PING 3.3.3.3 (3.3.3.3): 56 data bytes
!!!!!
--- 3.3.3.3 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.101/0.118/0.166/0.024 ms

root@JNCIE>

root@JNCIE> ping 1.1.1.1 logical-system R3 rapid  
PING 1.1.1.1 (1.1.1.1): 56 data bytes
!!!!!
--- 1.1.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.192/0.257/0.355/0.069 ms

root@JNCIE>

root@JNCIE> ping 2.2.2.2 logical-system R3 rapid  
PING 2.2.2.2 (2.2.2.2): 56 data bytes
!!!!!
--- 2.2.2.2 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.096/0.142/0.228/0.048 ms

root@JNCIE>


Final configuration:
root@JNCIE> show configuration | display set
set version 12.1R1.9
set system host-name JNCIE
set system root-authentication encrypted-password "$1$Luohd5lf$6ikSsNi1iEX/147eHbqm7."
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any
set logical-systems R1 interfaces em1 unit 12 vlan-id 12
set logical-systems R1 interfaces em1 unit 12 family inet address 8.8.12.1/24
set logical-systems R1 interfaces em1 unit 12 family iso
set logical-systems R1 interfaces lo0 unit 1 family inet address 1.1.1.1/32
set logical-systems R1 interfaces lo0 unit 1 family iso address 47.0001.0000.0000.0001.00
set logical-systems R1 protocols isis level 2 disable
set logical-systems R1 protocols isis interface em1.12
set logical-systems R1 protocols isis interface lo0.1
set logical-systems R2 interfaces em2 unit 12 vlan-id 12
set logical-systems R2 interfaces em2 unit 12 family inet address 8.8.12.2/24
set logical-systems R2 interfaces em2 unit 12 family iso
set logical-systems R2 interfaces em2 unit 23 vlan-id 23
set logical-systems R2 interfaces em2 unit 23 family inet address 8.8.23.2/24
set logical-systems R2 interfaces em2 unit 23 family iso
set logical-systems R2 interfaces lo0 unit 2 family inet address 2.2.2.2/32
set logical-systems R2 interfaces lo0 unit 2 family iso address 47.0001.0000.0000.0002.00
set logical-systems R2 protocols isis interface all
set logical-systems R3 interfaces em3 unit 23 vlan-id 23
set logical-systems R3 interfaces em3 unit 23 family inet address 8.8.23.3/24
set logical-systems R3 interfaces em3 unit 23 family iso
set logical-systems R3 interfaces lo0 unit 3 family inet address 3.3.3.3/32
set logical-systems R3 interfaces lo0 unit 3 family iso address 47.0002.0000.0000.0003.00
set logical-systems R3 protocols isis level 1 disable
set logical-systems R3 protocols isis interface em3.23
set logical-systems R3 protocols isis interface lo0.3
set interfaces em1 vlan-tagging
set interfaces em2 vlan-tagging
set interfaces em3 vlan-tagging

root@JNCIE> 


Reference:
1. IS-IS Configuration Guide (JunOS 12.1)
http://www.juniper.net/techpubs/en_US/junos12.1/information-products/pathway-pages/config-guide-routing/config-guide-routing-is-is.html

2. JNCIA-M Study Guide,
ISBN: 0-7821-4071-8
JNCIA-SP JNCIA Study Guide 勘誤訂正:
https://juilin77.blogspot.com/2018/06/jncia-sp-jncia-study-guide.html


最初發表 / 最後更新: 2014.03.16 / 2018.06.03

0 comments:

張貼留言