半截诗323. 2022-05-04 23:30 采纳率: 0%
浏览 69
已结题

怎么做可以互相ping通?

img

还有一条要求就是
pc1和pc3划分vlan10
pc2和pc4划分vlan20
(做好几遍了一直通不了,大神教一教)

  • 写回答

3条回答 默认 最新

  • CZLJL 2022-05-06 17:12
    关注
    获得1.30元问题酬金

    用SVI接口解决,以下是配置,闲着没事自己搭了个拓扑做的,创建vlan我就不打上去了
    LSW1
    interface Vlanif10
    ip address 192.168.10.1 255.255.255.0
    interface Vlanif20
    ip address 192.168.20.1 255.255.255.0
    interface GigabitEthernet0/0/1
    port link-type access
    port default vlan 10
    interface GigabitEthernet0/0/2
    port link-type access
    port default vlan 20
    interface GigabitEthernet0/0/3
    port link-type trunk
    port trunk allow-pass vlan 10 20
    LSW2
    interface Vlanif10
    ip address 192.168.10.4 255.255.255.0
    interface Vlanif20
    ip address 192.168.20.4 255.255.255.0
    interface GigabitEthernet0/0/1
    port link-type trunk
    port trunk allow-pass vlan 10 20
    interface GigabitEthernet0/0/2
    port link-type access
    port default vlan 10
    interface GigabitEthernet0/0/3
    port link-type access
    port default vlan 20
    PC1

    img

    PC2

    img

    PC3

    img

    PC4

    img

    评论

报告相同问题?

问题事件

  • 系统已结题 5月13日
  • 请采纳用户回复 5月12日
  • 赞助了问题酬金10元 5月5日
  • 创建了问题 5月4日