GNS下搭建BGP网络环境

GNS下搭建BGP网络环境_第1张图片

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)#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

 

R3#enable

R3#config ter

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

R3(config)#int f0/1

R3(config-if)#ip add 192.168.1.5255.255.255.0

R3(config-if)#no sh

*Dec 17 10:42:07.132: %LINK-3-UPDOWN:Interface FastEthernet0/1, changed state to up

*Dec 17 10:42:08.132: %LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/1, changed state to up

R3(config-if)#router BGP 100

R3(config-router)#neighbor 192.168.1.6remote-as 200

*Dec 17 10:44:09.604: %BGP-5-ADJCHANGE:neighbor 192.168.1.6 Up

R3(config-router)#exi

R3(config)#exit

R3#wr

 之后在链路上就可以进行数据包抓取查看



你可能感兴趣的:(GNS环境搭建)