Eth-Trunk
SW3
- interface Eth-Trunk3
- port link-type trunk
- port trunk allow-pass vlan 2 to 4094
- #
- interface GigabitEthernet0/0/6
- eth-trunk 3
- #
- interface GigabitEthernet0/0/7
- eth-trunk 3
AR1
- interface Eth-Trunk 1
- interface Eth-Trunk 1.1
- #
- interface Eth-Trunk1.101
- dot1q termination vid 101
- ip address 10.1.1.1 255.255.255.0
- #
- interface GigabitEthernet0/0/0
- eth-trunk 1
- #
- interface GigabitEthernet0/0/1
- eth-trunk 1
- #
RIPv2
SW3
- rip 1
- undo summary
- version 2
- network 10.0.0.0
AR1
- rip 1
- default-route originate
- version 2
- network 10.0.0.0
PPP
AR1
- interface Serial4/0/0
- link-protocol ppp
- ppp pap local-user R1@huawei password cipher hauwei
- ip address ppp-negotiate
AR2
- interface Serial4/0/0
- link-protocol ppp
- ppp authentication-mode pap domain huawei
- remote address 100.1.12.1
- ppp ipcp remote-address forced
- ip address 100.1.12.2 255.255.255.0
- aaa
- authentication-scheme huawei
- domain huawei
- authentication-scheme huawei
- local-user r1@huawei password cipher huawei
- local-user r1@huawei service-type ppp
OSPF
AR2
- interface LoopBack0
- ip address 2.2.2.2 255.255.255.255
- #
- ospf 1 router-id 2.2.2.2
- area 0.0.0.0
- network 2.2.2.2 0.0.0.0
- network 100.1.12.0 0.0.0.255
- network 100.1.23.0 0.0.0.255
AR3
- ospf 1 router-id 3.3.3.3
- default-route-advertise
- area 0.0.0.0
- network 3.3.3.3 0.0.0.0
- network 100.1.23.0 0.0.0.255
- network 100.1.34.0 0.0.0.255
- network 114.114.114.0 0.0.0.255
NAT
AR1
- acl number 2000
- rule 5 permit source 10.2.0.0 0.0.255.255
- interface Serial4/0/0
- nat outbound 2000
AR4
- interface GigabitEthernet0/0/0
- nat server global 100.1.34.1 inside 192.168.1.1
DHCP
SW3
- dhcp enable
- interface Vlanif10
- ip address 10.2.1.254 255.255.255.0
- dhcp select global
- ip pool vlan10
- gateway-list 10.2.1.254
- network 10.2.1.0 mask 255.255.255.0
- dns-list 114.114.114.114
WLAN
SW3
- ip pool vlan103
- gateway-list 10.1.3.254
- network 10.1.3.0 mask 255.255.255.0
- dns-list 114.114.114.114
- option 43 sub-option 3 ascii 10.1.2.1
SW1
- interface Ethernet0/0/3
- port hybrid pvid vlan 103
- port hybrid tagged vlan 30
- port hybrid untagged vlan 103
- stp edged-port enable
AC
- web界面-向导配置
¶ DNS
¶ 测试