08-03-2013 12:42 AM - edited 03-07-2019 02:44 PM
Hi All.
I have just bought my first cisco router (887VA-K9). I see that you cant assign LAN ip range to the interfaces themselves, so i have created this on Vlan1 as below:
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int Vlan 1
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#
How do i now assign Vlan1 to all 4 interfaces?
Basically i want any device that is connected the interfaces to gain an ip from dhcp pool from the same subnet on all 4 interfaces?
Thanks.
Solved! Go to Solution.
08-03-2013 06:44 AM
Hello
you are correct vlan 1 is the default on cisco and all access ports are assigned to this vlan as default
res
paul
Sent from Cisco Technical Support Android App
08-03-2013 12:49 AM
VLAN1 would be the default, so is probably not showing in the config. You could try 'show run all' and see if it shows up then.
The command for each interface is 'switchport access vlan 1'
Rather than configure all interfaces individually, you could use the range command as follows, 'interface range f0-3'
08-03-2013 05:45 AM
I thought Vlan1 is assigned to all interfaces by default? For example - when I connect any device to any of the 4 ports. The interface comes up first then the Vlan1 comes up? See below:
Aug 3 12:12:50.891: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2, changed state to up
Aug 3 12:13:18.911: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
08-03-2013 02:54 AM
use the command "show ip interface brief", see list of inferfaces. For multiple interfaces use the command "interface range" e.g. "interface range fa0/1-20, fa0/24-34" then, then switchport access command "switchport access vlan 1"
---
Posted by WebUser Mario Boltek from Cisco Support Community App
08-03-2013 06:44 AM
Hello
you are correct vlan 1 is the default on cisco and all access ports are assigned to this vlan as default
res
paul
Sent from Cisco Technical Support Android App
08-03-2013 01:38 PM
Hi,
Vlan1 is by default shut.
so issue command
int vlan 1
no shut.
by defautl all Interface are in vlan 1.
DO RATE HELPFUL POSTS.
Jawad
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