sc0: flags=63<UP,BROADCAST,RUNNING>
vlan 1 inet 68.187.127.1 netmask 255.255.255.0 broadcast
68.187.127.1
Console> (enable)
Configuring a Default Route and Gateway
Data traffic not addressed to the local subnet or VLAN must be sent to a default route or destination. For
redundancy purposes, a secondary default gateway can be configured if the primary gateway link is lost. The
switch attempts to use the secondary gateways in the order they were configured, unless the syntax primary is
used. The switch will send periodic pings to determine if each gateway has lost connectivity. If the primary
gateway loses its link, it begins forwarding to the secondary default gateway. When connectivity to the
primary gateway link is restored, the switch resumes sending traffic to the primary gateway.
You can define up to three default IP gateways. The first gateway configured becomes the primary default
gateway. If multiple gateways are defined, the last primary gateway configured is the primary default
gateway. You can also use the primary subcommand to make a certain IP address the defined primary default
gateway. The rest become secondary in the event of a network problem, as shown here:
Console> (enable) set ip route default 68.187.127.1
Route added.
Console> (enable) set ip route default 68.187.127.2 primary
Route added.
Viewing the Default Routes
The following command allows you to see the default routes on both the Cisco IOS−based command−line
interfaces:
Console> (enable) show ip route
Fragmentation Redirect Unreachable
————————————— ———————— ———————————
enabled enabled enabled
The primary gateway: 68.187.127.1
Destination Gateway RouteMask Flags Use Interface
——————————— ——————— ————————— ————— ————— —————————
default 68.187.127.1 0x0 UG 100 sc0
default 68.187.127.2 0x0 G 0 sc0
Configuring Port Speed and Duplex
You can manually set 10Mbps and 100Mbps ports. Occasionally, you will find an interface that cannot
autonegotiate the speed correctly. You can choose from three syntaxes:
10—10Mbps traffic only100—100Mbps traffic onlyauto—Autonegotiates the speed of the traffic on the port
Let’s take a look at some examples. To configure port 3 on module 2 to auto−negotiate, use the following
command:
Console? (enable) set port speed 2/3 auto
Port 2/3 set to auto−sensing mode.
You can also enter multiple ports’ consecutive port numbers. The following example configures ports 1
through 8 on the same line card used in the previous example to 100Mbps:
45