We help IT Professionals succeed at work.

VLAN config problem!

Medium Priority
301 Views
Last Modified: 2012-05-11
I want to config vlan1 like this:
   network 192.168.2.0 255.255.0.0

But after apply, it auto change to this:

ip dhcp pool vlan1
   network 192.168.0.0 255.255.0.0
   default-router 192.168.1.1
   dns-server 8.8.8.8
!

Why that?
Thank you!
Comment
Watch Question

Senior infrastructure engineer
CERTIFIED EXPERT
Top Expert 2012
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
use 192.168.2.1

the last number cannot be 0 or
Ernie BeekSenior infrastructure engineer
CERTIFIED EXPERT
Top Expert 2012

Commented:
Typo, should indeed be:


Interface vlan1
ip address 192.168.2.
1 Or whatever ip you want to give it.
Marius GunnerudSenior Systems Engineer
Top Expert 2013

Commented:
What exactly are you trying to do? configure DHCP or configure an IP on the VLAN interface or have the VLAN interface receive an IP from DHCP?

If you are trying to configure a static IP on the VLAN interface then what erniebeek mentioned above is the way to do it. Though you will need to include the subnet mask

interface vlan 1
ip address 192.168.2.1 255.255.0.0

however if you are trying to configure DHCP then the reason it is changing from 192.168.2.0 to 192.168.0.0 is because of the subnet mask you are giving it. you would need to give it a subnet mask of 255.255.254.0 or some other range in the 3rd octet for that number to stay.
Marius GunnerudSenior Systems Engineer
Top Expert 2013

Commented:
oops. mistake in that subnet.  it would need to be 255.255.253.0 at the very least.
Hi,

configure the network with a subnet mask of 255.255.255.0 instead of 255.255.0.0

network 192.168.2.0 255.255.255.0
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.