求助,奇怪的问题,内网PC机上的网关可以随便设置......

weixin_38051170 2008-04-16 04:51:10

公司用CISCO3550和2950集连....划分的VLAN....
  现在...出现内网里面的PC机..TCP/IP设置里...IP需要和VLAN同一个网段..可是网关可以随便设置一个IP地址都可以上网或者和内网任意一台机子通信......
C3550#show runn
Building configuration...

Current configuration : 5160 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname C3550
!
enable password ********
!
username doowell password 0 cisco
ip subnet-zero
ip routing
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
spanning-tree portfast
!
interface FastEthernet0/2
no switchport
ip address 192.168.10.1 255.255.255.0
ip access-group 10 in
ip access-group 10 out
!
interface FastEthernet0/3
switchport access vlan 2
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/4
switchport access vlan 6
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/5
switchport access vlan 6
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/6
switchport access vlan 6
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/7
switchport access vlan 6
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/8
switchport access vlan 6
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/9
switchport access vlan 6
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/10
switchport access vlan 6
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/11
switchport access vlan 8
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/12
switchport access vlan 6
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/13
switchport access vlan 6
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/14
switchport access vlan 8
switchport mode access
bandwidth 10000
no ip address
spanning-tree portfast
!
interface FastEthernet0/15
switchport access vlan 5
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/16
switchport access vlan 3
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/17
switchport access vlan 9
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/18
switchport access vlan 3
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/19
switchport access vlan 8
switchport mode access
bandwidth 100000
no ip address
spanning-tree portfast
!
interface FastEthernet0/20
switchport access vlan 3
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/21
switchport access vlan 3
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/22
switchport access vlan 3
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/23
switchport access vlan 3
switchport mode access
no ip address
spanning-tree portfast
!
interface FastEthernet0/24
switchport access vlan 3
switchport mode access
no ip address
spanning-tree portfast
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface Vlan1
ip address 192.168.100.254 255.255.255.0
!
interface Vlan2
ip address 192.168.0.1 255.255.255.0
ip helper-address 192.168.1.1
!
interface Vlan3
ip address 192.168.1.10 255.255.255.0
!
interface Vlan4
ip address 192.168.2.1 255.255.255.0
!
interface Vlan5
ip address 192.168.3.1 255.255.255.0
!
interface Vlan6
ip address 192.168.4.1 255.255.255.0
!
interface Vlan7
ip address 192.168.5.1 255.255.255.0
!
interface Vlan8
ip address 192.168.6.1 255.255.255.0
!
interface Vlan9
ip address 192.168.7.1 255.255.255.0
!
interface Vlan10
ip address 192.168.8.1 255.255.255.0
!
interface Vlan11
ip address 192.168.9.1 255.255.255.0
!
interface Vlan12
ip address 192.168.11.1 255.255.255.0
!
interface Vlan13
ip address 192.168.12.1 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.10.228
ip http server
!
!
!
line con 0
password ********
login
line vty 0 4
password ******
login
line vty 5 15
login
!
end

C2950#show runn
Building configuration...

Current configuration : 2181 bytes
!
version 12.1
no service single-slot-reload-enable
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname C2950
!
enable password *******
!
ip subnet-zero
!
spanning-tree extend system-id
!
!
interface FastEthernet0/1
switchport mode trunk
no ip address
!
interface FastEthernet0/2
switchport access vlan 4
no ip address
!
interface FastEthernet0/3
switchport access vlan 6
no ip address
!
interface FastEthernet0/4
switchport access vlan 6
no ip address
!
interface FastEthernet0/5
switchport access vlan 4
no ip address
!
interface FastEthernet0/6
switchport access vlan 4
no ip address
!
interface FastEthernet0/7
switchport access vlan 6
no ip address
!
interface FastEthernet0/8
switchport access vlan 4
no ip address
!
interface FastEthernet0/9
switchport access vlan 4
no ip address
!
interface FastEthernet0/10
switchport access vlan 12
no ip address
!
interface FastEthernet0/11
switchport access vlan 4
no ip address
!
interface FastEthernet0/12
switchport access vlan 4
no ip address
!
interface FastEthernet0/13
switchport access vlan 4
no ip address
!
interface FastEthernet0/14
switchport access vlan 5
no ip address
!
interface FastEthernet0/15
switchport access vlan 9
switchport mode access
no ip address
!
interface FastEthernet0/16
switchport access vlan 5
no ip address
!
interface FastEthernet0/17
switchport access vlan 5
no ip address
!
interface FastEthernet0/18
switchport access vlan 5
no ip address
!
interface FastEthernet0/19
switchport access vlan 2
no ip address
!
interface FastEthernet0/20
switchport access vlan 10
no ip address
!
interface FastEthernet0/21
switchport access vlan 7
no ip address
!
interface FastEthernet0/22
switchport access vlan 2
switchport mode access
no ip address
!
interface FastEthernet0/23
switchport access vlan 7
no ip address
!
interface FastEthernet0/24
switchport access vlan 11
no ip address
!
interface Vlan1
ip address 192.168.100.253 255.255.255.0
no ip route-cache
!
ip http server
!
!
line con 0
line vty 0 4
timeout login response 200
password ******
login
line vty 5 15
login
!
end


C:\Documents and Settings\Administrator>ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : kdlll
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Hybrid
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter 本地连接:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Cont
roller
        Physical Address. . . . . . . . . : 00-1A-A0-2C-4C-75
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.6.30
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.6.1
        DNS Servers . . . . . . . . . . . : 218.85.*.*
                                            202.101.*.*
        Primary WINS Server . . . . . . . : No

问题是Default Gateway 这个IP..我可以随便的更改...对网络使用没有影响......
...全文
22 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
以企业现网案例为例现网在用主流技术、防火墙旁挂组网案例、包含但不限于vlan、trunk、eth-trunk、OSPF、vpn-instance、NAT技术等。1、第一部分涉及知识点如下: IP地址配置 vlan划分 trunk vlanif 链路聚合 vrrp技术、MSTP、NAT、 OSPF、静态路由、2、规划:  2.1 六台终端分别属于vlan10 20 30 40 55 60,IP地址已经静态配置好;  2.2 四台接入层交换机创建vlan 划分vlan 配置上行trunk  2.3 核心交换机配置trunk并放行所有vlan与接入层互联;  2.4 核心交换机作为内网终端的网关,使用vlanif作为网关;  2.5 在核心交换机配置VRRP,规划如下:      2.5.1 SW1作为vlan 10 30 55的主网关,SW2作为vlan20 40 60的主网关  2.6 SW1-SW2之间配置链路聚合,采用LACP。  2.7 配置MSTP+VRRP:  2.8 SW1 SW2分别使用vlanif201 202对接出口路由器AR1 AR2      SW1:10.1.201.1/24 AR1:G0/0/1:10.1.201.254/24      SW2:10.1.202.2/24 AR2:G0/0/1:10.1.202.254/24      AR1:G2/0/0:10.1.12.1/24 AR2:G2/0/0:10.1.12.2/24      AR1:G0/0/0:192.168.137.2/24  2.9 出口设备AR1配置默认路由及NAT技术实现访问互联网;  2.10 在出口设备AR1开启DNS解析,设置DNS服务器地址;       [AR1]dns resolve       [AR1]dns server 192.168.137.1  2.11 出口设备与汇聚设备配置OSPF协议,并且处于骨干区域Area 0  2.12 出口设备AR1下发OSPF默认路由;  2.13 完成后 可以ping通百度:Ping www.a.shifen.com [14.119.104.189]: 32 data bytes, Press Ctrl_C to breakFrom 14.119.104.189: bytes=32 seq=1 ttl=52 time=62 msFrom 14.119.104.189: bytes=32 seq=2 ttl=52 time=63 msFrom 14.119.104.189: bytes=32 seq=3 ttl=52 time=62 msFrom 14.119.104.189: bytes=32 seq=4 ttl=52 time=63 msFrom 14.119.104.189: bytes=32 seq=5 ttl=52 time=62 ms

435

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧