Accton Technology ES3628C Switch User Manual


 
IP Routing Commands
4-251
4
Global Routing Configuration
ip routing
This command enables IP routing. Use the no form to disable IP routing.
Syntax
[no] ip routing
Default Setting
Enabled
Command Mode
Global Configuration
Command Usage
The command affects both static and dynamic unicast routing.
If IP routing is enabled, all IP packets are routed using either static routing or
dynamic routing via RIP or OSPF, and other packets for all non-IP protocols
(e.g., NetBuei, NetWare or AppleTalk) are switched based on MAC
addresses. If IP routing is disabled, all packets are switched, with filtering and
forwarding decisions based strictly on MAC addresses.
Example
ip route
This command configures static routes. Use the no form to remove static routes.
Syntax
ip route {destination-ip netmask | default} {gateway} [metric metric]
no ip route {destination-ip netmask | default | *}
destination-ip – IP address of the destination network, subnetwork, or host.
netmask - Network mask for the associated IP subnet. This mask identifies
the host address bits used for routing to specific subnets.
default – Sets this entry as the default route.
Table 4-83 Global Routing Configuration Commands
Command Function Mode Page
ip routing Enables static and dynamic IP routing GC 4-251
ip route Configures static routes GC 4-251
clear ip route Deletes specified entries from the routing table PE 4-252
show ip route Displays specified entries in the routing table PE 4-253
show ip host-route Displays displays the interface associated with known routes PE 4-254
show ip traffic Displays statistics for IP, ICMP, UDP, TCP and ARP protocols PE 4-255
Console(config)#ip routing
Console(config)#