10G Core Routing Switch User Manual
陈泽科技有限公司
- - 28 - -
www.stephen-tele.com
To remove an IP address from an interface, use the
no ipaddress
interface configuration command.
This example shows how to configure a port as a routed port and to assign it an IP address:
Switch#
configure terminal
Switch(config)#
interface vlan 2
Switch(config-if)#
ipaddress 192.168.135.21 255.255.255.0
6.4.
Troubleshooting IP Address Configuration
Fault 1: The switch cannot ping through a certain host in the LAN.
Troubleshooting can be performed as follows:
Check the configuration of the switch. Use
show arp
command to view the ARP entry table that the Switch maintains.
Troubleshooting: First check which VLAN includes the port of the switch used to connect to the host.
Check whether the VLAN has been configured with the VLAN interface. Then check whether the IP address of the
VLAN interface and the host is on the same network segment.
7.
Configuring IP Routing
This chapter describes how to configure IP routing on the switch. A switch operates and appears as a single router to
the rest of the routers in the network. Basic routing functions, including static routing,the Routing Information
Protocol (RIP) and Open Shortest Path First protocol (OSPF).
7.1.
Introduction to IP Route and Routing Table
7.1.1.
IP Route and Route Segment
Routers are implemented for route selection in the Internet.
A router works in the following way: It selects an appropriate path (through a network) according to the destination
address of its received packet and forwards the packet to the next router. It works in this way hop by hop and the last
router in the path is responsible for submitting the packet to the destination host to complete the IP packet forwarding
and the routing across network segments.
In a network, the router regards a path for sending a packet as a logical route unit, and calls it a Hop. For example, in
the figure below, a packet sent from Host A to Host C, a packet should go through 2 routers and the packet is
transmitted through two hops and router segments. Therefore, when a node is connected to another node through a
network, there is a hop between these two nodes and these two nodes are deemed as adjacent in the Internet. In the
same principle, the adjacent routers refer to two routers connected to the same network. The number of route
segments between a router and hosts in the same network counted as zero. In the following figure, the bold arrows
represent the hops.
A router can be connected to any physical link that constitutes a route segment for routing packets via the network.