Сравнение версий
Ключ
- Эта строка добавлена.
- Эта строка удалена.
- Изменено форматирование.
Image Removed
Рассмотрим простую топологию из 4х устройств.
Image Added
hostname "SW1"
vlan database
vlan 20,30
vlan routing 20
vlan routing 30
exit
configure
ip routing
no spanning-tree
spanning-tree bpdufilter default
interface 1/0/1
no shutdown
vlan participation exclude 1
vlan participation include 30
vlan tagging 30
exit
interface 1/0/2
no shutdown
vlan participation exclude 1
vlan participation include 20
vlan tagging 20
exit
interface vlan 30
no shutdown
routing
ip address 3.0.0.1 255.255.255.252
exit
interface vlan 20
no shutdown
routing
ip address 2.0.0.1 255.255.255.252
exit
router bgp 64700
bgp router-id 1.1.1.1
network 3.0.0.0 mask 255.255.255.0
network 2.0.0.0 mask 255.255.255.0
neighbor 3.0.0.2 remote-as 64600
neighbor 2.0.0.2 remote-as 64700
address-family vpnv4 unicast
exit
address-family ipv6
exit
exit
exit
hostname "SW2"
vlan database
vlan 10,30
vlan routing 10
vlan routing 30
exit
configure
ip routing
no spanning-tree
spanning-tree bpdufilter default
!
interface 1/0/3
no shutdown
vlan participation exclude 1
vlan participation include 30
vlan tagging 30
exit
interface 1/0/2
no shutdown
vlan participation exclude 1
vlan participation include 10
vlan tagging 10
exit
interface vlan 30
no shutdown
routing
ip address 3.0.0.2 255.255.255.252
exit
interface vlan 10
no shutdown
routing
ip address 10.0.0.2 255.255.255.252
exit
router bgp 64700
bgp router-id 2.2.2.2
network 3.0.0.0 mask 255.255.255.0
network 10.0.0.0 mask 255.255.255.0
neighbor 3.0.0.1 remote-as 64700
neighbor 10.0.0.1 remote-as 64600
address-family vpnv4 unicast
exit
address-family ipv6
exit
exit
exit
SW3:
hostname "SW3"
vlan database
vlan 10
vlan routing 10
exit
configure
ip routing
no spanning-tree
spanning-tree bpdufilter default
!
interface 1/0/1
no shutdown
vlan participation exclude 1
vlan participation include 10
vlan tagging 10
exit
interface vlan 10
no shutdown
routing
ip address 10.0.0.1 255.255.255.252
exit
router bgp 64600
bgp router-id 3.3.3.3
network 10.0.0.0 mask 255.255.255.0
neighbor 10.0.0.2 remote-as 64600
address-family vpnv4 unicast
exit
address-family ipv6
exit
exit
exit
SW4:
hostname "SW4"
vlan database
vlan 20
vlan routing 20
exit
configure
ip routing
no spanning-tree
spanning-tree bpdufilter default
!
interface 1/0/4
no shutdown
vlan participation exclude 1
vlan participation include 20
vlan tagging 20
exit
interface vlan 20
no shutdown
routing
ip address 2.0.0.2 255.255.255.252
exit
router bgp 64600
bgp router-id 4.4.4.4
network 2.0.0.0 mask 255.255.255.0
neighbor 2.0.0.1 remote-as 64700
address-family vpnv4 unicast
exit
address-family ipv6
exit
exit
exit
show run
show ip bgp
show ip bgp neighbors
show ip bgp summary