Hi all- I need help with a new 2960 that i configured a second vlan. the default vlan1 im able to access the network and internet but the PCs connected to the ports on vlan2 i dont get any connection in the switch i did the #ip add 10.0.2.1 to vlan2 and when i do a ipconfig in the pc i see a 169.254.210 address Question where is this ip coming from and how do i configure vlan2 for ip 10.0.1.xx ,vlan1 is configure as 10.0.0.xx
Software/Hardware used:
windos 7, telnet
ASKED:
July 13, 2010 7:12 PM
UPDATED:
February 14, 2011 7:48 PM
On the switch this is the configuration
enable
config t
vlan 2
name *******input the name of the vlan here********
exit
vlan 3
name ******input the name of the vlan here******
exit
next go to the interfaces you want in those vlans lets say
int fa 0/1
switchport mode access
switchport mode vlan 2
no shut
exit
do the same for every interface you want in vlan 2 and vlan 3
now the port that goes to the router has to be a trunking port so input this
config t
int g 0/1
switchport mode trunk
no shut
exit
now onto the router
on the interface connected to the switch input
config t
int g 0/1.1
encapsulation dot1Q 1 *****dot1 Q is the encapsulation type and the 1 at the end is for vlan 1
ip address 10.0.0.1 255.255.255.0
no shut
exit
int g 0/1.2
encapsulation dot1Q 2
ip address 10.12.12.12 255.255.255.0
no shut
exit
now your question doesn’t say you want to use DHCP so if not assign your two computers their respective IP address as per the vlan they are connected to then from one of the computers ping the other and if you input the configuration correctly it will work.
First palce the interfaces you want into their vlas
If you are using a cisco router, it can farm out IP addresses on it’s subinterfaces as well.
IP dhcp pool P1
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
ip dhcp pool P2
network 10.12.12.0 255.255.255.0
default-router 10.12.12.12