This post is more than 5 years old
9 Posts
0
4298
switch outside gateway
Hi,
i have 6248, with 3 VLANs configured (1,98,99). 111 is management VLAN.
my switch has x.x.x.249 IP address (on each VLAN i have different IP address).
to be able to route inter VLAN, i need to set the gateway on the servers/PCs to x.x.x.249
when i am using the switch as the gateway, i can access to all VLANs perfectlly.
the issue is i have no Internet. my outside gateway is 106.103.1.1 and it sit on VLAN 1.
how can i "tell" the switch to "forward" each packet which needs to be out of the switch range to 106.103.1.1 from all the VLANs?
Thanks
Anonymous
5 Practitioner
5 Practitioner
•
274.2K Posts
0
December 9th, 2013 10:00
Sounds like you need to add a static route directing traffic out. command should look like this.
#ip route 0.0.0.0 0.0.0.0 106.103.1.1
That should work, if not let us know may need to add a route on your gateway directing traffic back to the 6248, we could also look at the current config on the switch.
gabik
9 Posts
0
December 9th, 2013 11:00
what is the reason to use "ip route 0.0.0.0 0.0.0.0 106.103.1.1" other than "ip route default 106.103.1.1" ?
Thanks
Anonymous
5 Practitioner
5 Practitioner
•
274.2K Posts
0
December 9th, 2013 12:00
with #ip route, you can put in place multiple static routes. This leaves room for more versatility.