公司原有一台交换机供内部使用,新接一条专线,运营商提供172.106.4.2/30 给本地使用,因要访问其它IP,172.106.4.10-14,在本地交换机上做了一些配置之后,只可以在交换机里面PING通172.106.4.10,在台式机上无法访问。
interface NULL0
#
interface Vlan-interface100
ip address 10.23.121.2 255.255.255.252
#
interface Vlan-interface101
ip address 10.23.121.129 255.255.255.248
#
interface Vlan-interface102
ip address 10.23.121.145 255.255.255.240
#
interface Vlan-interface103
ip address 10.23.121.161 255.255.255.224
#
interface Vlan-interface104
ip address 10.23.121.225 255.255.255.240
#
interface Vlan-interface105
ip address 10.23.121.201 255.255.255.248
#
interface Vlan-interface106
ip address 10.23.121.209 255.255.255.248
#
interface Vlan-interface107
ip address 10.23.121.217 255.255.255.248
#
interface Vlan-interface108
ip address 172.106.4.2 255.255.255.252
#
interface GigabitEthernet1/0/1
port link-mode bridge
port access vlan 100
#
interface GigabitEthernet1/0/2
port link-mode bridge
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 101
#
interface GigabitEthernet1/0/4
port link-mode bridge
port access vlan 101
#
interface GigabitEthernet1/0/5
port link-mode bridge
port access vlan 102
#
interface GigabitEthernet1/0/6
port link-mode bridge
port access vlan 102
#
interface GigabitEthernet1/0/7
port link-mode bridge
port access vlan 102
#
interface GigabitEthernet1/0/8
port link-mode bridge
port access vlan 102
#
interface GigabitEthernet1/0/9
port link-mode bridge
port access vlan 102
#
interface GigabitEthernet1/0/10
port link-mode bridge
port access vlan 102
#
interface GigabitEthernet1/0/11
port link-mode bridge
port access vlan 102
#
interface GigabitEthernet1/0/12
port link-mode bridge
port access vlan 102
#
interface GigabitEthernet1/0/13
port link-mode bridge
#
interface GigabitEthernet1/0/14
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/15
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/16
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/17
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/18
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/19
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/20
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/21
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/22
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/23
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/24
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/25
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/26
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/27
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/28
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/29
port link-mode bridge
port access vlan 103
#
interface GigabitEthernet1/0/30
port link-mode bridge
#
interface GigabitEthernet1/0/31
port link-mode bridge
port access vlan 104
#
interface GigabitEthernet1/0/32
port link-mode bridge
port access vlan 104
#
interface GigabitEthernet1/0/33
port link-mode bridge
port access vlan 104
#
interface GigabitEthernet1/0/34
port link-mode bridge
#
interface GigabitEthernet1/0/35
port link-mode bridge
port access vlan 105
#
interface GigabitEthernet1/0/36
port link-mode bridge
port access vlan 105
#
interface GigabitEthernet1/0/37
port link-mode bridge
port access vlan 106
#
interface GigabitEthernet1/0/38
port link-mode bridge
port access vlan 106
#
interface GigabitEthernet1/0/39
port link-mode bridge
port access vlan 106
#
interface GigabitEthernet1/0/40
port link-mode bridge
#
interface GigabitEthernet1/0/41
port link-mode bridge
port access vlan 107
#
interface GigabitEthernet1/0/42
port link-mode bridge
port access vlan 107
#
interface GigabitEthernet1/0/43
port link-mode bridge
port access vlan 107
#
interface GigabitEthernet1/0/44
port link-mode bridge
port access vlan 107
#
interface GigabitEthernet1/0/45
port link-mode bridge
port access vlan 108
#
interface GigabitEthernet1/0/46
port link-mode bridge
port access vlan 102
#
interface GigabitEthernet1/0/47
port link-mode bridge
#
interface GigabitEthernet1/0/48
port link-mode bridge
#
interface GigabitEthernet1/0/49
port link-mode bridge
shutdown
#
interface GigabitEthernet1/0/50
port link-mode bridge
shutdown
#
interface GigabitEthernet1/0/51
port link-mode bridge
shutdown
#
interface GigabitEthernet1/0/52
port link-mode bridge
shutdown
#
ip route-static 0.0.0.0 0.0.0.0 10.23.121.1
ip route-static 172.106.4.0 255.255.255.0 172.106.4.1 preference 59
#
load xml-configuration
(0)
最佳答案
台式机网关是在SW2上面,172.106.4.0的网段网关是SW1上面,那个0.0.0.0这条路由其实指向的是一层交换机,画错了。SW1上面没做10.23.121.0/24 这条路由。不知道下一跳应该怎么写,
(0)
ip route-static 10.23.121.0 24 172.106.4.2 这样写就可以了~可以评论我的回答哈~不然我不点到这个问题,就看不到你的评论啦~
ip route-static 10.23.121.0 24 172.106.4.2 这样写就可以了~可以评论我的回答哈~不然我不点到这个问题,就看不到你的评论啦~
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明