Switches, Hubs, and Modems
1751972 Members
4880 Online
108784 Solutions
New Discussion юеВ

Re: Question on Vlan Internet

 
jwc1972
Advisor

Question on Vlan Internet

Hello

Question
I connected a Laptop to a rj45 in the network. Then Patched The port to r45 in the wall on the Vlan, Then I assign a static IP of
i/p 10.22.30.10
s/n 255.255.255.0
G/w 10.22.30.1

I can ping the network switch on 192.168.1.221 but i can't get to the internet? do i need a special route? Our DNS server is 192.168.1.35

Encloed the Config

Running configuration:

; J9147A Configuration Editor; Created on release #W.14.38

hostname "Switchoffice"
time timezone 1
module 1 type J9147A
ip default-gateway 192.168.1.1
ip routing
vlan 1
name "Lan"
untagged 1-12
ip address dhcp-bootp
tagged 48
no untagged 13-47
exit
vlan 100
name "DMZ"
untagged 37-47
ip address 172.16.8.1 255.255.255.128
tagged 48
exit
vlan 20
name "Voip"
untagged 13-24
ip address 192.168.42.1 255.255.255.0
tagged 48
exit
vlan 30
name "UP Lan"
untagged 25-36
ip address 10.22.30.1 255.255.255.0
exit
ip route 10.22.30.0 255.255.255.0 192.168.1.1
banner motd "This is a private system maintained by the Corporation"
snmp-server community "public" unrestricted
5 REPLIES 5
Bernard G├╢hrs
New Member

Re: Question on Vlan Internet

yes, it seems you need a default route.

ip route 0.0.0.0 0.0.0.0 >ip of your Internet Gateway<

The line in your config:

ip default-gateway 192.168.1.1

does not do what you might suppose.
jwc1972
Advisor

Re: Question on Vlan Internet

Ok Cheers

So I add no ip-address-gateway 192.168.1.1 to the config, will that not break anything? Then I add ip route 0.0.0.0 0.0.0.0 192.168.1.1 Do I need to take out the old ip route?

Cheers
Diego Castelli
Trusted Contributor

Re: Question on Vlan Internet

Correct me if i'm wrong, but the route you specified is for REACHING the 10.22.30.0/24 subnet, not the internet.

you must specify a 0.0.0.0 route to enable the internet ACCESS.

Try to have a look at route print on your windows or linux PC and identify the route to the internet.
Diego C.

MS MCSA Server 2003

HP Accredited Integration Specialist
Diego Castelli
Trusted Contributor

Re: Question on Vlan Internet

Another thing:
you can leave the default gw line, but you shouldn't expect this is used on all vlans by default, translating the vlan GW address in some way or forwarding the traffic automatically.

Vlans are made primarily for Network partitioning. A default behavior of such kind should be considered regrettable.
Diego C.

MS MCSA Server 2003

HP Accredited Integration Specialist
jwc1972
Advisor

Re: Question on Vlan Internet

Cheers

I'm im lost.

I have add IP 0.0.0.0 0.0.0.0 192.168.1.35 which is our domain controller/DNS server
Then back on the client machine change the DNS setting to 192.168.1.35, Still no luck in getting on the network. Then I add 0.0.0.0 0.0.0.0 192.168.1.1 which is our gateway Still no luck.
on the client Machine
route print
0.0.0.0 0.0.0.0 10.22.30.1 10.22.30.10
10.22.30.0. 255/24 10.22.30.10 10.22.30.10
Default gateway 10.22.30.1
No menation of 192.168.1.1?

But I ping 6 address on the 192.168.1.1 network? from solarwinds ip tracker