设置了2个VLAN,两个VLAN分属于不同的网段,也配置vlanif,但是两个网段不能互通。
这是为啥啊?
(0)
最佳答案
把你的相关配置贴出来。
正常时不可能不通的。检查终端的子网掩码、网关、接口属性、所属vlan。
无非这几个属性
(0)
配置我贴出来了
看了配置,交换机这块没问题。你上面说的“不通”,是指vlan10和20分别接了电脑吗?电脑的IP、掩码、网关写了吗?两台时Windows的话,其防火墙关闭了嘛?检查一下
[H3C]dis cu
#
version 5.20.99, Release 1109
#
sysname H3C
#
domain default enable system
#
ipv6
#
telnet server enable
#
port-group-vlan 1
#
password-recovery enable
#
vlan 1
description SERVER-FIRE
#
vlan 10
#
vlan 20
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
user-group system
group-attribute allow-guest
#
local-user admin
password cipher $c$3$EkhzOhFEh59+WPOOlD32QaWsr0DwDZyU
authorization-attribute level 3
service-type telnet
service-type web
#
interface NULL0
#
interface Vlan-interface1
ip address 192.168.0.233 255.255.255.0
#
interface Vlan-interface10
ip address 192.168.2.1 255.255.255.0
#
interface Vlan-interface20
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port access vlan 10
#
interface GigabitEthernet1/0/2
port access vlan 10
#
interface GigabitEthernet1/0/3
port access vlan 20
#
interface GigabitEthernet1/0/4
port access vlan 20
#
interface GigabitEthernet1/0/5
port access vlan 20
#
interface GigabitEthernet1/0/6
port access vlan 20
#
interface GigabitEthernet1/0/7
port access vlan 20
#
interface GigabitEthernet1/0/8
port access vlan 20
#
interface GigabitEthernet1/0/9
port access vlan 20
#
interface GigabitEthernet1/0/10
port access vlan 20
#
interface GigabitEthernet1/0/11
port access vlan 20
#
interface GigabitEthernet1/0/12
port access vlan 20
#
interface GigabitEthernet1/0/13
port access vlan 20
#
interface GigabitEthernet1/0/14
port access vlan 20
#
interface GigabitEthernet1/0/15
port access vlan 20
#
interface GigabitEthernet1/0/16
port access vlan 20
#
interface GigabitEthernet1/0/17
port access vlan 20
#
interface GigabitEthernet1/0/18
port access vlan 20
#
interface GigabitEthernet1/0/19
port access vlan 20
#
interface GigabitEthernet1/0/20
port access vlan 20
#
interface GigabitEthernet1/0/21
port access vlan 20
#
interface GigabitEthernet1/0/22
port access vlan 20
#
interface GigabitEthernet1/0/23
port access vlan 20
#
interface GigabitEthernet1/0/24
port access vlan 20
#
interface GigabitEthernet1/0/25
#
interface GigabitEthernet1/0/26
#
interface GigabitEthernet1/0/27
#
interface GigabitEthernet1/0/28
#
undo info-center logfile enable
#
load xml-configuration
#
user-interface aux 0
user-interface vty 0 15
authentication-mode scheme
#
return
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
太感谢你了!!