redstar01
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!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Typo, should indeed be:
Interface vlan1
ip address 192.168.2.1 Or whatever ip you want to give it.
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.
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.
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
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
the last number cannot be 0 or