#把AP的4个本地接口，归到一个VLAN （233）里面去
interface GigabitEthernet 0/2
encapsulation dot1Q 233
exit
interface GigabitEthernet 0/3
encapsulation dot1Q 233
exit
interface GigabitEthernet 0/4
encapsulation dot1Q 233
exit
interface GigabitEthernet 0/5
encapsulation dot1Q 233
exit
# G 0/1作为外网出口
#这里将拨号口于物理口进行了绑定
interface GigabitEthernet 0/1
no pppoe enable
pppoe-client dial-pool-number 1 no-ddr
exit
#它里面承载了DHCP（由网关分配),以及PPPOE的链路
#这里配置拨号口
interface dialer 1
ip address negotiate
mtu 1492
encapsulation ppp
ip nat outside
dialer pool 1
dialer-group 1
ppp ipcp dns request
ppp chap hostname test11
ppp chap password test12
ppp pap sent-username test11 password test12
exit
access-list 1 permit any
dialer-list 1 protocol ip permit

# 这里需要禁用到默认的BVI 1的路由,否则会导致手机无法上外网
no ip nat inside source list 2 interface BVI 1
ip nat inside source list 1 interface dialer 1

# 这里为了解决下发配置后隧道断开的问题，将所有走MACC的流量,均通过BVI 1口走
# macc1
ip route 118.190.121.1 255.255.255.255 ${gateway}
# maccdemo
ip route 118.190.126.198 255.255.255.255 ${gateway}
ip route 0.0.0.0 0.0.0.0 dialer 1 1
exit
