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!

Setting ip address on VLAN interface? Why?

Status
Not open for further replies.

Iago77

IS-IT--Management
Joined
Jun 9, 2003
Messages
125
Location
ES
Hello everybody,

we're planning to connect two switches through trunk 802.11q and both of them connected to a router.

Do I need setting ip adreess each vlan interface?

Switch#sh run
Building configuration...

Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
enable secret 5 $1$oZuL$DvCwrjo35DkZQ9P.1lx3p1
!
!
!
!
!
!
ip subnet-zero
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
switchport access vlan 2
!
interface FastEthernet0/3
switchport access vlan 2
!
interface FastEthernet0/4
switchport access vlan 2
!
interface FastEthernet0/5
switchport access vlan 15
!
interface FastEthernet0/6
switchport access vlan 15
!
interface FastEthernet0/7
switchport access vlan 15
!
interface FastEthernet0/8
switchport access vlan 3
!
interface FastEthernet0/9
switchport access vlan 3
!
interface FastEthernet0/10
switchport access vlan 3
!
interface FastEthernet0/11
switchport access vlan 3
!
interface FastEthernet0/12
switchport access vlan 3
!
interface VLAN1
no ip directed-broadcast
no ip route-cache
!
interface VLAN2
no ip directed-broadcast
no ip route-cache
shutdown
!
interface VLAN3
ip address 192.168.5.214 255.255.254.0
no ip directed-broadcast
no ip route-cache
shutdown
!
interface VLAN15
no ip directed-broadcast
no ip route-cache
shutdown
!
!
line con 0
transport input none
stopbits 1
line vty 0 4
password cisco
login
line vty 5 15
login
!
end

Switch#sh vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1
2 Support active Fa0/2, Fa0/3, Fa0/4
3 Intranet active Fa0/8, Fa0/9, Fa0/10, Fa0/11,
Fa0/12
15 ACME active Fa0/5, Fa0/6, Fa0/7
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
 
You only need to set an IP address on the VLAN interface if ytou want to manage the switch remotely via telnet etc.

If you don't wish to have remote management capability of the switch, you won't need to assign a VLAN IP address. It would mean of course you could only ever perform local management on the device (i.e. through a console connection).
 
Thank you very much for the information :-)

I'm going to open a new thread about another question. You may answer it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top