盛科E350-8TS12X交换机配置线路密码:
Switch> enable
Switch# conf t
Switch(config)# line vty 0 7
Switch(config-line)# login local
Switch(config-line)# exit
Switch(config)# username testname privilege 4 password 123abc<>
Switch(config)# exit
Switch# write
Building configuration...
[OK]
盛科E350-8TS12X交换机配置telnet服务:
Switch> enable
Switch# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# service telnet enable
Switch(config)# exit
Switch# write
Building configuration...
[OK]
盛科E350-8TS12X交换机配置时间及时区:
Switch> enable
Switch# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# ntp server 193.228.143.14
Switch(config)# clock set timezone dst add 8 0 0
盛科E350-8TS12X交换机开启http服务:
Switch(config)# service http enable
盛科E350-8TS12X交换机关闭DHCP服务:
Switch(config)# service dhcp disable
盛科E350-8TS12X交换机配置带外管理端口:
Switch(config)# interface vlan 1
Switch(config)# no management ip address dhcp
Switch(config)# management ip address 172.16.1.111/24
Switch(config)# management route add gateway 172.16.1.254
盛科E350-8TS12X交换机配置路由:
Switch# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# ip route 0.0.0.0 0.0.0.0 172.16.15.254
Switch(config)# exit
Switch# write
Building configuration...
[OK]
举个例子,加入1.0/24网段对应vlan1,2.0网段对应vlan2,以此类推。盛科E350-8TS12X交换机的配置如下:
创建vlan 2-15
interface eth-0-1
switchport mode trunk
switchport trunk all vlan all
然后接服务器上端口用access
interface eth-0-10
switchport mode access
switchport access vlan 10