求助,奇怪的问题,内网PC机上的网关可以随便设置......
公司用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..我可以随便的更改...对网络使用没有影响......