Unsolved
This post is more than 5 years old
203 Posts
0
155513
February 1st, 2012 07:00
switch based IP address and default-gateway settings...
The “ip address” command is a switch based setting, as is the “ip default-gateway” My question is, are these bound to any specific VLAN? Most of my VLAN’s (the one’s routed) will have their own respective interface assigned to them (with routing enabled of course), and my thought is that the PowerConnects will need an IP address bound to them in order pass up to the default gateway (my upstream router/firewall). But if I set the IP address, and default gateway, I’m not sure where they live. (My default VLAN is 101, and I’ve removed the PVID of 1 from all of the ports and set it to 101). Can anyone provide some insight?
No Events found!



sketchy00
203 Posts
0
February 1st, 2012 12:00
Well here is the crux of my issue as I’m doing my testing.
Test arrangement:
Created VLAN 111
Assigned ports as “access” ports to 3/g1-3/g2
Assigned IP address 192.168.111.1 to that VLAN
Created VLAN 112
Assigned ports as “access” ports to 3/g3-3/g4
Assigned IP address 192.168.112.1 to that VLAN.
Enabled IP routing globally on the switch, and on those two VLAN’s
Set the IP address of the switch as 192.168.1.2.
Set the default gateway of the switch as 192.168.1.1 (my upstream router/firewall)
Test results:
Put test machines on both VLANs, as well as the default VLAN, and tested the following with their results indicated:
System on VLAN 111 contacting it’s VLAN’s default gateway: Success
System on VLAN 111 contacting remote machine on VLAN 112: Success
System on VLAN 112 contacting it’s VLAN’s default gateway: Success
System on VLAN 112 contacting remote machine on VLAN 111: Success
Systems on VLAN 111 or 112 contacting upstream router (192.168.1.1): Fail (destination net unreachable)
Systems on VLAN 111 or 112 contacting anything on Default VLAN: Fail (destination net unreachable)
System from default VLAN contacting switch IP address: Success
System from default VLAN contacting upstream router: Success