interface GigabitEthernet0/1
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/2
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/3
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/4
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/5
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/6
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/7
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/8
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/9
switchport access vlan 20
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/10
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/11
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/12
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/13
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/14
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/15
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/16
switchport mode trunk
!
interface Vlan1
no ip address
!
interface Vlan20
no ip address
!
ip default-gateway 10.10.1.1
ip http server
ip http authentication local
ip http secure-server
!
end
interface Vlan1删去IP后浏览器就打不开10.10.1.2了,无论是否给Vlan1配IP都不能让PC2上网,我想在实现VLAN划分的基础上兼顾浏览器管理功能。ip address 10.10.1.2 255.255.255.0
已解决! 转到解答。
guangxil 发表于 2019-1-11 15:28
我将Gi0/9划分到VLAN20中,PC1连接Gi0/1,PC2连接Gi0/9,路由连接Gi0/16,PC1和PC2均设为自动获取IP。
以 ...
guangxil 发表于 2019-1-11 15:35
首先,你家的路由器是什么路由器?这个很重要,因为要做NAT,这个功能是交换机做不了的。
guangxil 发表于 2019-1-11 15:33
如果楼主想划分Vlan,并且每个vlan都要能上网,必须每个vlan都要有网关,不然数据包转发不出这个vlan。如果 ...
Basic Layer 3 Features
RIP is a commonly used routing protocol in small to medium-sized TCP/IP networks. It is supported in both IPv4 and IPv6 network environments.
Static routing is used to segment the network into separate workgroups and communicate across VLANs without degrading application performance.