Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with switch

Status
Not open for further replies.
Joined
Dec 6, 2004
Messages
3
Location
US
How would I go about creating a vlan1 ip address. Is it as simple as just creating an ip address on the interface that is connected to the router?? Would Vlan1 pick up that ip address by default?
 
If it is a simple layer 2 IOS switch then it is as simple as putting the address on the virtual vlan interface , doesn't have to be vlan 1 . The ip address is simply for managing the switch and that is all . You would also have to put a ip default gateway statement pointing to your L3 device you are hooking it up to .
 
Ok, let me see if i understand correctly.

i go to...
switch#interface vlan 1
ip address <ipaddress>

switch(config)#ip route 0.0.0.0 0.0.0.0 <ipaddress>

would that be correct?

 
That is correct but depending on the switch the default gateway may be "ip default gateway <ip address> . 2950's or 2924's will be like this whereas the 4500's with ios will be as you said 0.0.0.0 0.0.0.0 <ip address> .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top