GNS下搭建ISIS和BGP混合网络环境

来源:互联网 发布:网络创世纪 编辑:程序博客网 时间:2024/06/03 16:54

R1、R2、R3、R4之间起BGP协议,R1的AS域为100,其余AS域为200,然后在R2和R4之间同时起ISIS协议,两者可以同时运行,实验抓包截图如后面所示:

R1#enable

R1#config

Configuring from terminal, memory, ornetwork [terminal

Enter configuration commands, one perline.  End with C

R1(config)#int f0/0

R1(config-if)#ip add 172.16.1.1255.255.255.0

R1(config-if)#no sh

*Dec 16 19:52:51.047: %LINK-3-UPDOWN:Interface FastEth

*Dec 16 19:52:52.047: %LINEPROTO-5-UPDOWN:Line protoco

R1(config-if)#int f0/1

R1(config-if)#ip add 192.168.1.6255.255.255.0

R1(config-if)#no sh

*Dec 16 19:54:14.651: %LINK-3-UPDOWN:Interface FastEth

*Dec 16 19:54:15.651: %LINEPROTO-5-UPDOWN:Line protoco

R1(config-if)#router BGP 200

R1(config-router)#neighbor 172.16.1.2remote-as 200

R1(config-router)#neighbor 192.168.1.5remote-as 100

R1(config-router)#exit

R1(config)#exit

R1#wr



R1#enable

R1#config

Configuring from terminal, memory, ornetwork [terminal

Enter configuration commands, one perline.  End with C

R1(config)#int f0/0

R1(config-if)#ip add 172.16.1.1255.255.255.0

R1(config-if)#no sh

*Dec 16 19:52:51.047: %LINK-3-UPDOWN:Interface FastEth

*Dec 16 19:52:52.047: %LINEPROTO-5-UPDOWN:Line protoco

R1(config-if)#int f0/1

R1(config-if)#ip add 192.168.1.6255.255.255.0

R1(config-if)#no sh

*Dec 16 19:54:14.651: %LINK-3-UPDOWN:Interface FastEth

*Dec 16 19:54:15.651: %LINEPROTO-5-UPDOWN:Line protoco

R1(config-if)#router BGP 200

R1(config-router)#neighbor 172.16.1.2remote-as 200

R1(config-router)#neighbor 192.168.1.5remote-as 100

R1(config-router)#exit

R1(config)#exit

R1#wr

R2#

R2#enable

R2#config ter

Enter configuration commands, one perline.  End with CNTL/Z.

R2(config)#int f0/0

R2(config-if)#ip add 172.16.1.2255.255.255.0

R2(config-if)#no sh

*Dec 17 10:51:47.364: %LINK-3-UPDOWN:Interface FastEthernet0/0, changed state to up

*Dec 17 10:51:48.364: %LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/0, changed state to up

R2(config)#int f0/1

R2(config-if)#ip add 192.168.2.1255.255.255.0

R2(config-if)#ip router isis

R2(config-if)#no sh

R2(config-if)#router isis

R2(config-router)#net49.0001.0111.0111.0111.00

R2(config-router)#is-type level-2-only

R2(config)#router BGP 200

R2(config-router)#neighbor 172.16.1.1remote-as 200

*Dec 17 10:55:24.264: %BGP-5-ADJCHANGE:neighbor 172.16.1.1 Up

R2(config-router)#exit

R2(config)#exit

R2#wr


R4#enable

R4#config ter

Enter configuration commands, one perline.  End with CNTL/Z.

R4(config)#int f0/1

R4(config-if)#ip add 192.168.2.2255.255.255.0

R4(config-if)#ip router isis

R4(config-if)#no sh

*Dec 17 11:44:14.751: %LINK-3-UPDOWN:Interface FastEthernet0/1, changed state to up

*Dec 17 11:44:15.751: %LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/1, changed state to up

R4(config-if)#router isis

R4(config-router)#net49.0001.0222.0222.0222.00

R4(config-router)#is-type level-2-only

R4(config-router)#exit

R4(config)#exi

R4#wr

 



0 0