YoriTian 2021-12-14 21:24
浏览 9
已结题

思科交换机 12个生产口,1个外网口,但是依旧无法访问外网,如何解决?

在交换机ping内网 没问题,ping外网ping不通
配置如下,求解!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 10
name ShengChan
!
vlan 25
name gongsi9bu
!
vlan 30
name ZiZhu
!
vlan 50
name WangYinTiYan
!
vlan 51
name zizhushebei-vlan
!
vlan 52
name netbank
!
vlan 61
name jiaohaoji
!
vlan 62
!
vlan 102
name HA-rebei
!
vlan 200
name 3G-Backup
!
vlan 500
name HuLian
!
vlan 3602-3603
!
!
!
!

g0/1 to 12是3602vlan 为内网

interface GigabitEthernet0/1
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/2
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/3
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/4
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/5
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/6
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/7
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/8
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/9
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/10
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/11
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/12
switchport access vlan 3602
switchport mode access
!
interface GigabitEthernet0/13
!
interface GigabitEthernet0/14
!
interface GigabitEthernet0/15
!
interface GigabitEthernet0/16
!
interface GigabitEthernet0/17
!
interface GigabitEthernet0/18
!
interface GigabitEthernet0/19
!
interface GigabitEthernet0/20
!
interface GigabitEthernet0/21
switchport access vlan 3603
switchport mode access
!
interface GigabitEthernet0/22
!
#外网口
interface GigabitEthernet0/23
switchport access vlan 3603
switchport mode access
!
interface GigabitEthernet0/24
!
interface GigabitEthernet0/25
!
interface GigabitEthernet0/26
!
interface GigabitEthernet0/27
!
interface GigabitEthernet0/28
!
interface Vlan1
no ip address
shutdown
!
#内网
interface Vlan3602
ip address 192.168.211.254 255.255.255.0
!
#外网 上层链接防火墙 此防火墙接口设置为路由模式(192.168.52.1/24)
interface Vlan3603
ip address 192.168.52.2 255.255.255.0
!
ip classless
#配置了路由 下一跳到网关
ip route 0.0.0.0 0.0.0.0 192.168.52.1
ip http server
ip http secure-server

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 12月22日
    • 创建了问题 12月14日

    悬赏问题

    • ¥15 台达变频器MS300与伺服驱动器B3系列的抱闸与电路设计如何实现
    • ¥20 C++通过HICON获取argb像素数组
    • ¥15 如何利用支持向量机提高分类器正确率和筛选理想分类器
    • ¥15 Pygame坦克大战游戏开发实验报告
    • ¥15 用vmmare虚拟机用sentaurus仿真的时候,调用terminal程序,输入swb指令弹出这个,打不开workbench,桌面上面的sentaurus workbench也打不开
    • ¥75 使用winspool.drv的SetPrinter设置打印机失败
    • ¥15 simulink 硬件在环路仿真
    • ¥15 python动态规划:N根火柴摆出的最大数字
    • ¥20 (标签-excel)
    • ¥200 求idea10和MyEclipse7.1