交换机的工作原理这里就不再详解,想了解请看上一章:
sysname JingTai6700 //给交换机定义名字
vlan batch 2 to 4090 //在该交换机放通vlan信息。注意:为了防止环路,最好是使用那些vlan,则放通那些vlan即可。
interface Vlanif 4090 //使用4090做管理vlan,下面是配置管理ip
ip address 10.132.29.146 255.255.255.240
ip route-static 0.0.0.0 0.0.0.0 10.132.29.158 //网关
interface MEth0/0/1 //配置meth口
ip address 192.168.1.100 255.255.255.0
interface Eth-Trunk1 //创建聚合组
port link-type trunk //将聚合组打上trunk
port trunk allow-pass vlan 2 560 to 589 1790 to 1839 3440 to 3479 4090 //放通要经过聚合组1的业务vlan
quit
interface XGigabitEthernet0/0/1 //将聚合组加入物理端口
description Link-JingTai-TL-donghuanOTN195.00-TL6700(0/0/1)
eth-trunk 1
quit
interface XGigabitEthernet0/0/2 //将聚合组加入物理端口
description Link-JingTai-TL-donghuanOTN195.05-TL6700(0/0/2)
eth-trunk 1