ip网络构建小总结
小总结
代码:
system-view//进入配置模式
dis this //查看当前配置
dis ip rounting-table //查看路由表
vlan batch 10 20 30 //设置vlan
int e0/0/0 int g0/0/0 //进接口
port link-type access //设置端口为access
port default vlan 10
port link-type trunk //设置端口为trunk
port trunk allow-pass vlan 10
ip route-static 192.168.100.0 255.255.255.0 1.1.1.1
//单臂路由
int e0/0/1.100
ip add 192.168.100.1 24
dotp1 termination vid 100
arp broadcast enable
//链路聚合
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 100 200
stp instance 0 cost 10
interface Ethernet0/0/2
eth-trunk 1