June 30, 2006
Confidential
Document Number BDTM10001-A05 Standard
BelAir100 User Guide
Layer 2 Network Configuration
Configuring the IP
Address of a VLAN
You can set the IP address associated with a VLAN with the following
commands:
cd /ip
/ip# ip config set <ip address> netmask <subnet mask> vlan <1-2815>
or
cd /ip
/ip#
ip config dynamic vlan <
1-2815
>
The
ip config set
command configures a static IP address. If you use the
ip config
dynamic
command, a Dynamic Host Configuration Protocol (DHCP) server
provides the IP address. If the specified VLAN does not previously exist, then it
is created.
CAUTION!
If you create a new VLAN with this command, then, you must configure a
BelAir200 VLAN subsystem with the same VLAN ID as specified on the
BelAir100. All traffic from the specified client is discarded by the BelAir200 if
the mapped VLAN is not previously configured.
Note: DHCP servers usually have the ability to assign a default route to
DHCP clients. BelAir Networks recommends that you configure your
DHCP server to not supply any default routes. This avoids the
possibility of the DHCP server providing two different default routes to
two different IP interfaces on the same BelAir platform (for example, a
management IP interface and a VLAN IP interface). To configure a
default route, use instead the
ip route add
command available while in
ip
mode.
If you use a DHCP server, you can use the following command to renew the IP
address:
cd /ip
/ip# ip config vlan <
1-2815
> renew-ip
You can remove a previously created VLAN with the following command:
cd /ip
/ip# ip config del vlan <
1
-2815>
You can display the current VLAN IP settings with the following command:
cd /
/# show ip config [vlan <
1
-2815>]
If you do not specify a VLAN, then information is displayed about all VLANs.