1、.#sys#sysname *修改设备名#telnet server enable启用 telenet 服务#vlan 1000创建 vlan 1000(一般需要一个管理vlan)#interface Vlan -interface1000进入管理vlan,并配置IP 地址ip address 172.168.100.1 255.255.255.0#interface GigabitEthernet1/0/1将端口划入lan 中port link -type accessport access vlan 10#interface Ten-GigabitEthernet1/0/49上联端口打标记
2、,放行vlanport link -type trunkport trunk permit vlan all#line vty 0 63设置 vty 端口authentication -mode scheme#ip route -static 0.0.0.0 0 172.168.100.1配置默认路由#local-user admin class manage创建本地管理用户,并配置密码password Simple *service-type telnet terminal httpauthorization -attribute user -role network -adminautho
3、rization -attribute user -role network -operator#dhcp server ip -pool vlan10配置 dhcp 地址池network 172.168.10.0 mask 255.255.255.0gateway-list 172.168.10.1dns-list 61.134.1.4 218.30.19.40expired day 3#local-user admin配置管理员用户password cipher *authorization -attribute level 3service-type telnet terminal#.