7/旁掛三層組網直接轉發
其實做到這里應該很明白一個道理,
就是如何下AP正常上線,
無論你是二層組網,還是二層組網,
無認你是直連組網還是旁掛組網,
最終都需要先完成一件事兒,就是AP上線,
而AP的上線無外乎幾個點,
1 和AC 的連接,
2 獲得正常的IP地址(管理VLAN的地址)
3 CAPWAP源接口
其它的不說,
只要看一下幾台交換機的配置即可
Access
interface Ethernet0/0/2
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan 10 to 11 20 30
port-isolate enable group 1
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 to 11 20 30
coresw2
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10 to 11 20 30
#
interface GigabitEthernet0/0/2 //連接AC的接口
port link-type trunk
port trunk allow-pass vlan 10 to 11 //直接轉發模式,業務數據不用到AC
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 to 11 20 30
Vlanif10 192.168.10.1/24 up up
Vlanif11 192.168.11.2/24 up up
Vlanif20 192.168.20.2/24 up up
Vlanif30 192.168.30.2/24 up up
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.11.1
##
interface Vlanif11
ip address 192.168.11.2 255.255.255.0
AC
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 to 11 20 30
#
interface Vlanif11
ip address 192.168.11.1 255.255.255.0
dhcp select global
#
ip pool ap
gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
option 43 sub-option 3 ascii 192.168.11.1 //通過三層的方式 告訴AP,AC是哪一台
#
其它的就不用說了吧
看好是哪種轉發模式,是直接轉發的,那么業務流量不走AC
如果是隧道模式的話,就會走AC,
這取決於和AC相連的交換機接口,是否需要放行業務VLAN
8/旁掛三層組網隧道轉發
遵循隧道模式的原則,所有的數據都 會走AC,所以在關鍵接口上一定要放行相應的業備流量
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20 30
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10 to 11 20 30
#
interface GigabitEthernet0/0/2 //連接AC的接口
port link-type trunk
port trunk allow-pass vlan 10 to 11 20 30
其它就沒啥區別了,
-----------------------------------------
CCIE成長之路 --- 梅利