实验指南
![](https://i-blog.csdnimg.cn/blog_migrate/267b1119dd593447931b8c054c0c6590.jpeg)
Mint
conf t
host Mint
int l 10
ip ad 62.120.1.1 255.255.0.0
int l 20
ip ad 62.121.1.1 255.255.0.0
int l 30
ip ad 62.123.1.1 255.255.0.0
int s 2/0
ip ad 62.129.48.1 255.255.255.252
encap f
no arp f
no frame inver
frame map ip 62.129.48.2 103 b
no shut
exit
router bgp 203
no au
no sy
nei 62.129.48.2 remote-as 409
end
conf t
host Mint
int l 10
ip ad 62.120.1.1 255.255.0.0
int l 20
ip ad 62.121.1.1 255.255.0.0
int l 30
ip ad 62.123.1.1 255.255.0.0
int s 2/0
ip ad 62.129.48.1 255.255.255.252
encap f
no arp f
no frame inver
frame map ip 62.129.48.2 103 b
no shut
exit
router bgp 203
no au
no sy
nei 62.129.48.2 remote-as 409
end
Chocolate
conf t
host Chocolate
int l 10
ip ad 108.201.15.1 255.255.255.0
int l 20
ip ad 108.201.17.1 255.255.255.0
int l 30
ip ad 108.201.19.1 255.255.255.0
int s2/0
ip ad 108.201.14.1 255.255.255.252
encap f
no arp f
no frame inver
frame map ip 108.201.14.2 204 b
no shut
exit
router bgp 507
no au
no sy
nei 108.201.14.2 remote-as 409
end
Vanilla
conf t
host Vanilla
int s 2/0
ip ad 62.129.48.2 255.255.255.252
encap f
no arp f
no frame inver
frame map ip 62.129.48.1 301 b
no shut
int f 0/0
ip ad 10.1.1.2 255.255.255.0
no shut
exit
router ospf 1
net 10.1.1.2 0.0.0.0 a 0
net 62.129.48.2 0.0.0.0 a 0
router bgp 409
no au
no sy
nei 62.129.48.1 remote-as 203
net 10.1.1.0 mask 255.255.255.0
nei AS409 peer-group
nei AS409 remote-as 409
nei AS409 next-hop-self
nei 10.1.1.3 peer-group AS409
nei 192.168.1.2 peer-group AS409
nei 192.168.2.2 peer-group AS409
end
Strawberry
conf t
host Strawberry
int s 2/0
ip ad 108.201.14.2 255.255.255.252
encap f
no arp f
no frame inver
frame map ip 108.201.14.1 401 b
int f 0/0
ip ad 10.1.1.3 255.255.255.0
no shut
exit
router ospf 1
net 10.1.1.3 0.0.0.0 a 0
net 108.201.14.2 0.0.0.0 a 0
router bgp 409
no au
no sy
nei 108.201.14.1 remote-as 507
net 10.1.1.0 mask 255.255.255.0
nei AS409 peer-group
nei AS409 remote-as 409
nei AS409 next-hop-self
nei 10.1.1.2 peer-group AS409
nei 192.168.1.2 peer-group AS409
nei 192.168.2.2 peer-group AS409
end
Mocha
conf t
host Mocha
int f 0/0
ip ad 10.1.1.4 255.255.255.0
no shut
int s 2/0
ip ad 192.168.1.1 255.255.255.252
encap f
no arp f
no frame inver
frame map ip 192.168.1.2 506 b
no shut
int s 2/1
ip ad 192.168.2.1 255.255.255.252
encap f
no arp f
no frame inver
frame map ip 192.168.2.2 517 b
no shut
exit
router ospf 1
nei 192.168.1.2
nei 192.168.2.2
net 10.1.1.4 0.0.0.0 a 0
net 192.168.1.1 0.0.0.0 a 0
net 192.168.2.1 0.0.0.0 a 0
end
Latte
conf t
host Latte
int l 10
ip ad 10.2.2.1 255.255.255.0
int l 20
ip ad 10.2.3.1 255.255.255.0
int l 30
ip ad 10.2.4.1 255.255.255.0
int s 2/0
ip ad 192.168.1.2 255.255.255.252
encap f
no arp f
no frame inver
frame map ip 192.168.1.1 605 b
no shut
exit
router ospf 1
nei 192.168.1.1
net 192.168.1.2 0.0.0.0 a 0
net 10.2.2.1 0.0.0.0 a 0
net 10.2.3.1 0.0.0.0 a 0
net 10.2.4.1 0.0.0.0 a 0
router bgp 409
no au
no sy
nei AS409 peer-group
nei AS409 remote-as 409
nei AS409 next-hop-self
nei 10.1.1.2 peer-group AS409
nei 10.1.1.3 peer-group AS409
nei 192.168.2.2 peer-group AS409
net 10.2.2.0 mask 255.255.255.0
net 10.2.3.0 mask 255.255.255.0
net 10.2.4.0 mask 255.255.255.0
end
Americano
conf t
host Americano
int l 10
ip ad 10.200.1.1 255.255.255.0
int l 20
ip ad 10.200.3.1 255.255.255.0
int l 30
ip ad 10.200.5.1 255.255.255.0
int s2/1
ip ad 192.168.2.2 255.255.255.252
encap f
no arp f
no frame inver
frame map ip 192.168.2.1 715 b
no shut
exit
router ospf 1
nei 192.168.2.1
net 192.168.2.2 0.0.0.0 a 0
net 10.200.1.1 0.0.0.0 a 0
net 10.200.3.1 0.0.0.0 a 0
net 10.200.5.1 0.0.0.0 a 0
router bgp 409
no au
no sy
nei AS409 peer-group
nei AS409 remote-as 409
nei AS409 next-hop-self
nei 10.1.1.2 peer-group AS409
nei 10.1.1.3 peer-group AS409
nei 192.168.2.1 peer-group AS409
net 10.200.1.0 mask 255.255.255.0
net 10.200.3.0 mask 255.255.255.0
net 10.200.5.0 mask 255.255.255.0
end
转载于:https://blog.51cto.com/matthewyin/25020