User guide

B
LACK
D
IAMOND
U
SER
G
UIDE
8-9
C
ONFIGURING
IP U
NICAST
R
OUTING
C
ONFIGURING
IP U
NICAST
R
OUTING
This section describes the commands associated with configuring IP unicast routing on
the BlackDiamond. Configuring routing involves the following steps:
1 Create and configure two or more VLANs.
Although it is possible to enable IP forwarding and an IP routing protocol (such as
RIP) with only one VLAN defined, the BlackDiamond does not create or respond
appropriately to ICMP messages unless at least two VLANs are created and
configured.
For information on creating and configuring VLANs, refer to Chapter 4.
2 Assign each VLAN that will be using routing an IP address, using the following
command:
config vlan <name> ipaddress <ipaddress> {<mask>}
Ensure that each VLAN has a unique IP address.
3 Configure a default route, using the following command:
config iproute add default <gateway> {<metric>}
Default routes are used when the router has no other dynamic or static route to the
requested destination.
4 Turn on IP routing for one or more VLANs, using the following command:
enable ipforwarding {vlan <name> | all}
5 Turn on RIP or OSPF using one of the following commands:
enable rip
enable ospf
V
ERIFYING
THE
IP U
NICAST
R
OUTING
C
ONFIGURATION
Use the
show iproute
command to display the current configuration of IP unicast
routing for the system, and for each VLAN. The
show iproute
command displays the
currently configured routes, and includes how each route was learned.