04-28-2012 03:13 AM - edited 03-07-2019 06:23 AM
Morning,
Stumped again with my Catalyst 2950. Everything is working perfectly with wan/dhcp/router on fa 0/1 with all ports assigned to vlan1. All devices plugged in connect to the router correctly with ip's being assigned via dhcp.
Instead of hooking up by console port I want to be able to SSH or telnet in to the switch using any port while still maintaining the above functionallity. Is it possible to assign a dhcp assigned ip address to vlan 2 and have vlan1 and 2 bridged? Or is there a better way of doing this?
Solved! Go to Solution.
04-28-2012 03:52 AM
You could apply a static IP address to vlan 1 and then exclude that address from the dhcp pool.
Sent from Cisco Technical Support iPhone App
04-28-2012 05:35 AM
Alex,
You can put the management address on any vlan that you want, but the vlan will need to be accessible from hosts. If you put the address on vlan 2, you'll need to have your host on a port that's configured for vlan 2 or router-on-a-stick configured on the router to route for vlan 2. Either way, the easiest is to put your address on vlan 1 since the 2950 is a L2 switch (no routing functionality). You can only have a management address on the 2950 and that address cannot be used as a gateway for hosts; you would still use the router as your gateway.
Console into the switch and run these commands from the config prompt:
int vlan 1
ip address 192.168.1.2 255.255.255.0 (or whatever address you want to give it).
You'll want to have the address in the same subnet as what you're giving your hosts from your dhcp server, but you don't want the address to be in the range of the dhcp scope. If it is, you'll need to exclude the address on your router (if that's where the scope is) by putting in the command:
ip dhcp excluded-address
HTH,
John
Please rate useful posts...
04-28-2012 03:52 AM
You could apply a static IP address to vlan 1 and then exclude that address from the dhcp pool.
Sent from Cisco Technical Support iPhone App
04-28-2012 04:32 AM
Is ssh supported and configured on the switch? Are you attempting to open an ssh connection to the bridge admin address (the vlan1 address)?
Sent from Cisco Technical Support iPad App
04-28-2012 05:35 AM
Alex,
You can put the management address on any vlan that you want, but the vlan will need to be accessible from hosts. If you put the address on vlan 2, you'll need to have your host on a port that's configured for vlan 2 or router-on-a-stick configured on the router to route for vlan 2. Either way, the easiest is to put your address on vlan 1 since the 2950 is a L2 switch (no routing functionality). You can only have a management address on the 2950 and that address cannot be used as a gateway for hosts; you would still use the router as your gateway.
Console into the switch and run these commands from the config prompt:
int vlan 1
ip address 192.168.1.2 255.255.255.0 (or whatever address you want to give it).
You'll want to have the address in the same subnet as what you're giving your hosts from your dhcp server, but you don't want the address to be in the range of the dhcp scope. If it is, you'll need to exclude the address on your router (if that's where the scope is) by putting in the command:
ip dhcp excluded-address
HTH,
John
Please rate useful posts...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide