How do you assign default gateway to a specific vlan ?

kenny504kenny504 Users Awaiting Email Confirmation Posts: 237 ■■□□□□□□□□
Using a 2950 switch...How does that work.
There is no better than adversity, every defeat, every loss, every heartbreak contains its seed. Its own lesson on how to improve on your performance the next time.

Comments

  • WebmasterWebmaster Admin Posts: 10,292 Admin
    You can only configure a default gateway for the switch itself, which should be in the same subnet as the active 'VLAN interface' /management VLAN, so you can use Telnet, TFTP etc from and to devices not in the same subnet.
  • mp3spymp3spy Member Posts: 86 ■■□□□□□□□□
    kenny504 wrote:
    Using a 2950 switch...How does that work.

    I thought about the same thing when configuring multiple VLANS on a switch and having a trunk link to a router. You need to utilize sub-interfaces on the router interface linked to your 2950 sw, set the encap on each sub-int and beside each encap set the vlan-ID. An excellent cisco article on inter-vlan routing which includes examples:

    http://www.cisco.com/warp/public/473/50.shtml#801.1Q

    That will help you. Enjoy

    -D
    Ok CCNA BREAK IS OVER, TIME FOR CCSP!!!
Sign In or Register to comment.