华为企业网络配置示例1,旁挂三层直接转发
来源:原创
时间:2024-04-25
作者:脚本小站
分类:网络
S1---------------------------------------------------- vlan batch 100 200 101 102 111 199 dhcp enable ip pool vlan199 network 192.168.199.0 mask 24 gateway-list 192.168.199.1 dns-list 114.114.114.114 ip pool vlan101 network 192.168.101.0 mask 24 gateway-list 192.168.101.1 dns-list 114.114.114.114 ip pool vlan102 network 192.168.102.0 mask 24 gateway-list 192.168.102.1 dns-list 114.114.114.114 ip pool vlan100 network 192.168.100.0 mask 24 gateway-list 192.168.100.1 option 43 sub-option 3 ascii 192.168.200.10 interface Vlanif 100 ip address 192.168.100.1 24 dhcp select global interface Vlanif 101 ip address 192.168.101.1 24 dhcp select global interface Vlanif 102 ip address 192.168.102.1 24 dhcp select global interface Vlanif 200 ip address 192.168.200.1 24 interface Vlanif 111 ip address 192.168.111.2 24 int Vlanif 199 ip address 192.168.199.1 24 dhcp select global interface GigabitEthernet 0/0/1 port link-type access port default vlan 111 interface GigabitEthernet 0/0/2 port link-type trunk port trunk pvid vlan 199 port trunk allow-pass vlan 100 200 101 102 111 199 interface GigabitEthernet 0/0/3 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 100 200 101 102 111 199 interface GigabitEthernet 0/0/4 port link-type access port default vlan 200 ip route-static 0.0.0.0 0 192.168.111.1 S2---------------------------------------------------- interface GigabitEthernet 0/0/1 port link-type trunk port trunk pvid vlan 199 port trunk allow-pass vlan 100 200 101 102 111 199 interface Ethernet 0/0/1 port link-type access port default vlan 199 AR1---------------------------------------------------- interface GigabitEthernet 0/0/0 ip address 192.168.111.1 24 interface GigabitEthernet 0/0/1 ip address 12.2.2.1 24 ip route-static 0.0.0.0 0 12.2.2.254 ip route-static 192.168.0.0 16 192.168.111.2 AR2---------------------------------------------------- interface GigabitEthernet 0/0/0 ip address 12.2.2.254 24 interface GigabitEthernet 0/0/1 ip address 20.1.2.1 24 AC1---------------------------------------------------- interface GigabitEthernet 0/0/1 port link-type access vlan batch 200 interface GigabitEthernet 0/0/1 port default vlan 200 interface Vlanif 200 ip address 192.168.200.10 24 ip route-static 0.0.0.0 0 192.168.200.1 S3---------------------------------------------------- vlan batch 100 101 102 199 interface GigabitEthernet 0/0/1 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 100 101 102 199 200 port-group allport group-number Ethernet0/0/1 to Ethernet0/0/4 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 100 200 101 102 111 199 AC1---------------------------------------------------- capwap source interface Vlanif 200 wlan regulatory-domain-profile name default country-code cn ap-group name tanzhishuju-wifi regulatory-domain-profile default ap auth-mode mac-auth ap-id 1 ap-mac 00e0-fc06-0c50 ap-name ap1 ap-group tanzhishuju-wifi ap-id 2 ap-mac 00e0-fc0e-7f00 ap-name ap2 ap-group tanzhishuju-wifi ap-id 3 ap-mac 00e0-fc36-6750 ap-name ap3 ap-group tanzhishuju-wifi ssid-profile name ssid-office1 ssid tanzhishuju-wifi security-profile name sec-office1 security wpa-wpa2 psk pass-phrase tanzhi1234 aes vap-profile name vap-office1 forward-mode direct-forward service-vlan vlan-id 101 ssid-profile ssid-office1 security-profile sec-office1 ap-group name tanzhishuju-wifi vap-profile vap-office1 wlan 1 radio 0 vap-profile vap-office1 wlan 1 radio 1