weixin_44156981 2022-09-08 11:27 采纳率: 0%
浏览 48

同VLAN不同网段无法互PING

同VLAN不同网段无法互PING
IP设置
CW1:192.168.1.2/24网关192.168.1.1VLAN10
CW2:192.168.1.3/24网关192.168.1.1VLAN10
SC1:192.168.1.4/24网关192.168.1.1VLAN20
CW3:192.168.2.2/24网关192.168.2.1VLAN10
SC2:192.168.2.3/24网关192.168.2.1VLAN20
SC3:192.168.2.4/24网关192.168.2.1VLAN20
LW1设置
#
interface Vlanif10
ip address 192.168.1.1 255.255.255.0
dhcp select interface
dhcp server dns-list 8.8.8.8
#
interface Vlanif20
ip address 192.168.2.1 255.255.255.0
dhcp select interface
dhcp server dns-list 9.9.9.9
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
ip-subnet-vlan enable
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20
ip-subnet-vlan enable
#

LW2设置
#
interface Ethernet0/0/1
port link-type access
port default vlan 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 10
#
interface Ethernet0/0/3
port link-type access
port default vlan 20
#
interface Ethernet0/0/4
port link-type trunk
port trunk allow-pass vlan 10 20
#

LW3设置

interface Ethernet0/0/1
port link-type access
port default vlan 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 20
#
interface Ethernet0/0/3
port link-type access
port default vlan 20
#
interface Ethernet0/0/4
port link-type trunk
port trunk allow-pass vlan 10 20
#

  • 写回答

3条回答 默认 最新

  • Buringg 2022-09-08 12:35
    关注

    从题目上来看,同vlan不同网断确实不能通的,你既然把配置都贴了就把拓扑也贴上,把问题再描述清楚点哈

    评论

报告相同问题?

问题事件

  • 创建了问题 9月8日

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog