1748156 Members
4443 Online
108758 Solutions
New Discussion

Vlan No Internet

 
keyolz
Occasional Visitor

Vlan No Internet

Hi,

 

I have created new vlan = vlan 20 = ip address 192.168.20.1 255.255.254.0

 

Unfortunately no internet access on vlan 20.

 

 

[CoreSwitch]display current configuration
#
sysname CoreSwitch
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
#
domain default enable system
#
undo password-recovery enable
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool staff extended
network ip range 192.168.10.70 192.168.11.200
network mask 255.255.254.0
gateway-list 192.168.10.1
dns-list 8.8.8.8
#
dhcp server ip-pool student extended
network ip range 192.168.20.20 192.168.20.253
network mask 255.255.255.0
gateway-list 192.168.10.1
dns-list 8.8.8.8
#
user-group system
group-attribute allow-guest
#
local-user admin
password cipher $c$3$azZLej1hHxfWC401CNNuECszU6op5OvR
authorization-attribute level 3
service-type ssh telnet terminal
service-type web
#
cwmp
undo cwmp enable
#
ip route-static 0.0.0.0 0.0.0.0 192.168.10.1
ip route-static 192.168.20.0 255.255.254.0 Vlan-interface20 192.168.10.1
#
snmp-agent
snmp-agent local-engineid 800063A20378485967A6D3
snmp-agent sys-info location Bilik Server
snmp-agent sys-info version v3
#
dhcp enable
#
load xml-configuration
#
load tr069-configuration
#
user-interface aux 0
user-interface vty 0 15
#
return

 

[CoreSwitch]display vlan 20
VLAN ID: 20
VLAN Type: static
Route Interface: configured
IPv4 address: 192.168.20.1
IPv4 subnet mask: 255.255.254.0
Description: VLAN 0020
Name: VLAN 0020
Tagged Ports: none
Untagged Ports:
GigabitEthernet1/0/24

 

Your help is much appreciated.

 

1 REPLY 1
Apachez-
Trusted Contributor

Re: Vlan No Internet

Fix your ipranges being used.

 

In your case 192.168.20.1 255.255.254.0 means 192.168.20.0 - 192.168.21.255.

 

The default gateway you configured points to 192.168.10.1 which simply isnt reachable on this vlan.