交换机基础配置
以下配置中,绿色字体是需要自定义的.
设置设备的名称为GSH-FZ-Front
[Quidway] sysname Quidway
设置查看设备的时区,时间
telnet远程登录
[Quidway] aaa //////
[Quidway-aaa] local-user ccssoft password cipher p@ssw0rd privilege level 15
[Quidway-aaa] local-user ccssoft password simple ccssoft
[Quidway-aaa] local-user ccssoft service-type telnet
[Quidway-aaa] local-user ccssoft privilege level 15
[Quidway-aaa] quit [Quidway]user-interface vty 0 4 //设置5个虚拟终端,也就是说最多可以有5个终端同时连接
[Quidway-vty0-4]authentication-mode aaa
[Quidway -ui-vty0-4]quit
添加VLAN
[Quidway] vlan 10
[Quidway-vlan10] quit
设定端口模式
[Quidway] int gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1] port link-type access
[Quidway-GigabitEthernet0/0/1]quit
将端口加入Vlan
[Quidway-vlan131] port gigabitethernet 0/0/21 to 0/0/22
[Quidway-Vlan131] quit
设置Trunk
[Quidway] interface GigabitEthernet 0/0/23
[Quidway-GigabitEthernet0/0/23] port link-type trunk
[Quidway-GigabitEthernet0/0/23] port trunk allow-pass vlan 128 131
设置VLAN IP(管理IP)
[Quidway] interface vlanif 131
[Quidway-Vlanif131] ip address 192.168.0.253 255.255.255.0
[Quidway-Vlanif131] shutdown
[Quidway-Vlanif131] undo shutdown
设置默认路由
[Quidway] ip route-static 0.0.0.0 0.0.0.0 192.168.0.254
设定NTP
[Quidway] ntp-service unicast-peer 192.168.0.254 #
关闭WEB Server,dhcp
[Quidway] undo http server enable
[Quidway] undo dhcp enable