一、配置5700名称、管理IP、Telnet
1、命名为:1001
[Huawei]sysname 1001
2、配置管理IP:192.168.0.2
[1001]vlan 1(激活vlan1)
[1001-vlan1]description admin_VLAN
[1001-vlan1]quit
[1001]interface Vlanif 1
[1001-Vlanif1]ip address 192.168.0.2 255.255.255.0
3、配置Telnet
[1001]aaa
[1001-aaa]local-user huawei password cipher huawei
[1001-aaa]local-user huawei service-type telnet
[1001-aaa]local-user huawei privilege level 15
[1001-aaa]quit
[1001]user-interface vty 0 4
[1001-ui-vty0-4]authentication-mode aaa
[1001-ui-vty0-4]quit
二、配置Vlan、DHCP
[1001]vlan 7
[1001-vlan7]q
[1001]dhcp enable
[1001]interface Vlanif 7
[1001-Vlanif7]ip address 192.168.7.1 255.255.255.0
[1001-Vlanif7]dhcp select interface
[1001-Vlanif7]dhcp select relay
[1001-Vlanif7]dhcp server excluded-ip-address 192.168.7.2 192.168.7.50
[1001-Vlanif7]dhcp server lease day 0 hour 12 minute 0(不设默认为1天)
[1001-Vlanif7]dhcp server dns-list 202.96.128.86
三、gvrp
1001、1002全局开启gvrp
1001下联口设置:
[1001-GigabitEthernet0/0/2]port link-type trunk
[1001-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[1001-GigabitEthernet0/0/2]gvrp
1001上联口设置:
[1002-Ethernet0/0/1]port link-type trunk
[1002-Ethernet0/0/1]port trunk allow-pass vlan all
[1002-Ethernet0/0/1]gvrp
四、1002下联口设置:
[1002-Ethernet0/0/2]port link-type access
[1002-Ethernet0/0/2]port default vlan 7