[H3C]dis cu# version 7.1.070, Release 7536P05# sysname H3C# telnet server enable# forward-path-detection enable# system-working-mode standard xbar load-balance password-recovery enable#vlan 1#vlan 29#vlan 40# stp global enable#ftth#interface NULL0#interface Vlan-interface1#interface Vlan-interface29 ip address 192.168.29.1 255.255.255.0#interface Vlan-interface40 ip address 192.168.40.1 255.255.255.0#interface GigabitEthernet0/0/1 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/2 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/3 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/4 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/5 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/6 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/7 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/8 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/9 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/10 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/11 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/12 port link-mode bridge port access vlan 29#interface GigabitEthernet0/0/13 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/14 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/15 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/16 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/17 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/18 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/19 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/20 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/21 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/22 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/23 port link-mode bridge port access vlan 40#interface GigabitEthernet0/0/24 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/1 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/2 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/3 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/4 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/5 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/6 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/7 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/8 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/9 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/10 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/11 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/12 port link-mode bridge port access vlan 29#interface GigabitEthernet2/0/13 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/14 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/15 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/16 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/17 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/18 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/19 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/20 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/21 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/22 port link-mode bridge port access vlan 40#interface GigabitEthernet2/0/23 port link-mode bridge port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 29#interface GigabitEthernet2/0/24 port link-mode bridge port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 29 port trunk pvid vlan 29#interface M-GigabitEthernet0/0/0#interface Ten-GigabitEthernet0/0/25 port link-mode bridge#interface Ten-GigabitEthernet0/0/26 port link-mode bridge#interface Ten-GigabitEthernet0/0/27 port link-mode bridge#interface Ten-GigabitEthernet0/0/28 port link-mode bridge#interface Ten-GigabitEthernet2/0/25 port link-mode bridge#interface Ten-GigabitEthernet2/0/26 port link-mode bridge#interface Ten-GigabitEthernet2/0/27 port link-mode bridge#interface Ten-GigabitEthernet2/0/28 port link-mode bridge# scheduler logfile size 16#line class aux user-role network-admin#line class vty user-role network-operator#line aux 0 user-role network-admin#line vty 0 4 user-role level-3 user-role network-operator set authentication password hash $h$6$Bd2eXe ntpyjv rH$4IRxEzGXZPMLEAFwLi9M8idih0rjtUvd6ZbBXs25vN1oMC zrPZL6NqfftyiOn49k73x7WOJK1l8 XPcJELCvQ==#line vty 5 63 user-role network-operator# ip route-static 0.0.0.0 24 192.168.29.1#domain system# domain default enable system#role name level-0 description Predefined level-0 role#role name level-1 description Predefined level-1 role#role name level-2 description Predefined level-2 role#role name level-3 description Predefined level-3 role#role name level-4 description Predefined level-4 role#role name level-5 description Predefined level-5 role#role name level-6 description Predefined level-6 role#role name level-7 description Predefined level-7 role#role name level-8 description Predefined level-8 role#role name level-9 description Predefined level-9 role#role name level-10 description Predefined level-10 role#role name level-11 description Predefined level-11 role#role name level-12 description Predefined level-12 role#role name level-13 description Predefined level-13 role#role name level-14 description Predefined level-14 role#user-group system#local-user admin class manage password hash $h$6$6zPauARoVAB6Mp2z$XIPd2l8hIOCrD8Vq3L0UaL0eIvWsgznFLJW/qcMtzIDY5np4sV8MFIhadyrCIm1LFxYVYJqcmGBhV8QiujOToA== service-type http https authorization-attribute user-role network-admin authorization-attribute user-role network-operator# ip http enable ip https enable#return[H3C]
上面那个是交换机的配置,这个局域网是一个三层交换机,其中有一个四块网卡的服务器,所有网段必须要能够访问到服务器,现在的问题是,40网段,访问不了服务器,在服务器上,还有一个路由指向的设置,192.168.40.0 255.255.255.0 192.168.29.1按道理说,应该是能够访问到服务器,现在无法访问
(0)
兄弟 把你这个配置看了一遍,太难了!
你的服务器是哪个网段的地址呀?服务器连接在这个交换机上,还是在别的交换机上,通过路由互联了?
另外看配置
1、23口是trunk 只允许了29网段通过,检查是否漏配允许通过的vlan ,
2、你静态路由的掩码写的也不对吧,0.0.0.0 24 目的是0.0.0.1-254这个段的。你在检查一下。
(1)
乱码呀大哥,正常服务器只需要有网关就行了,类似于有缺省到网关,下面转发保证其他网段访问服务器网段的网关可以通就可以了
(1)
不好意思,我重发一遍啊
不好意思,我重发一遍啊
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
闲着没事把格式都改了