侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

用VLANIF配置三层交换

2023-04-01 星期六 / 0 评论 / 0 点赞 / 86 阅读 / 779 字

1.在S1上创建vlan10和vlan20,并将接口划入对应vlanS1]vlan batch 10 20[S1]interface Ethernet 0/0/2[S1-Ethernet0/0/2]p

.

1.在S1上创建vlan10和vlan20,并将接口划入对应vlan
S1]vlan batch 10 20

[S1]interface Ethernet 0/0/2
[S1-Ethernet0/0/2]port link-type access
[S1-Ethernet0/0/2]port default vlan 10
[S1-Ethernet0/0/2]quit

[S1]interface Ethernet 0/0/3
[S1-Ethernet0/0/3]port link-type access
[S1-Ethernet0/0/3]port default vlan 20
[S1-Ethernet0/0/3]quit

2.在S1上配置三层交换
SW1]interface Vlanif 10
[SW1-Vlanif10]ip address 10.1.1.100 24
[SW1-Vlanif10]quit

[SW1]interface Vlanif 20
[SW1-Vlanif20]ip address 10.1.2.100 24
[SW1-Vlanif20]quit

.

广告 广告

评论区