Link to home
Start Free TrialLog in
Avatar of redstar01
redstar01Flag for Viet Nam

asked on

VLAN config problem!

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!
ASKER CERTIFIED SOLUTION
Avatar of Ernie Beek
Ernie Beek
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
use 192.168.2.1

the last number cannot be 0 or
Typo, should indeed be:


Interface vlan1
ip address 192.168.2.
1 Or whatever ip you want to give it.
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.
oops. mistake in that subnet.  it would need to be 255.255.253.0 at the very least.
Avatar of rochey2009
rochey2009

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