Layer 3 Routing On MLS
Layer 3 Routing On MLS
Layer 3 Routing On MLS
www.moxa.com/product
Copyright Notice
2011 Moxa Inc., All rights reserved.
Trademarks
The MOXA logo is a registered trademark of Moxa Inc. All other trademarks or registered marks in this manual belong to their respective manufacturers.
Disclaimer
Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa. Moxa provides this document as is, without warranty of any kind, either expressed or implied, including, but not limited to, its particular purpose. Moxa reserves the right to make improvements and/or changes to this manual, or to the products and/or the programs described in this manual, at any time. Information provided in this manual is intended to be accurate and reliable. However, Moxa assumes no responsibility for its use, or for any infringements on the rights of third parties that may result from its use. This product might include unintentional technical or typographical errors. Changes are periodically made to the information herein to correct such errors, and these changes are incorporated into new editions of the publication.
Moxa Europe
Moxa Asia-Pacific
Table of Contents
1. Introduction to Layer 3 Switches ...................................................................................................... 1-1 The Layer 3 Switching Concept ............................................................................................................. 1-1 Static Routing and Dynamic Routing ..................................................................................................... 1-1 Static Routing ............................................................................................................................. 1-1 Dynamic Routing with RIP (Routing Information Protocol) ................................................................ 1-2 Dynamic Routing with OSPF (Open Shortest Path First) .................................................................... 1-2 IP Interface ...................................................................................................................................... 2-1 IP Interface Setting ............................................................................................................................. 2-1 Routing Protocols .............................................................................................................................. 3-1 Static Routing .................................................................................................................................... 3-1 Static Route Settings ................................................................................................................... 3-1 Dynamic Routing with RIP (Routing Information Protocol) ........................................................................ 3-2 RIP Settings ............................................................................................................................... 3-2 Dynamic Routing with OSPF (Open Shortest Path First) ........................................................................... 3-3 OSPF Settings ............................................................................................................................. 3-4 Gateway Redundancy .......................................................................................................................... 3-8 VRRP Settings ............................................................................................................................. 3-8 Routing Table ..................................................................................................................................... 3-9 Distance Vector Multicast Routing Protocol (DVMRP) ............................................................................... 3-9 DVMRP Settings .......................................................................................................................... 3-9 DVMRP Routing Entry List ........................................................................................................... 3-10 DVMRP Neighbors List ................................................................................................................ 3-10 DVMRP Multicast Routing Entry List ............................................................................................. 3-10 Protocol Independent Multicast, Dense Mode (PIM-DM) ......................................................................... 3-10 PIM-DM Settings ....................................................................................................................... 3-10 PIM-DM Neighbors List ............................................................................................................... 3-11 PIM-DM Multicast Routing Entry List ............................................................................................ 3-11
2. 3.
1
1.
Moxa offers Layer-3 switches that perform data switching on the Network Layer (Layer 3) of the ISOs OSI layer model. Unlike Layer-2 switching, which uses the MAC address for exchanging data, a Layer-3 switch uses the IP address to represent the destination of a data packet.
Static Routing
You can define the routes yourself by specifying what is the next hop (or router) that the Layer 3 switch forwards data for a specific subnet. The settings of the Static Route will be added to the routing table and stored in the Layer 3 switch.
Layer 3 Routing
1-2
2
2.
IP Interface
Before configuring the routing protocols, we first need to set the correct IP interfaces for the network.
IP Interface Setting
The IP Interface Setting page is used to assign the interface.
Interface Name Used to describe this interface (max. of 30 characters.) IP Address This option is used to specify the IP address of this interface. Subnet Mask This option is used to specify the subnet mask for this IP address. VLAN ID Setting ID numbers Description LAN. To establish an interface, you must first assign an available ID to this interface. If a VLAN ID is assigned twice, a warning message will appear. Proxy ARP Setting Enable/Disable Description This option is used to enable or disable the Proxy ARP. Factory Default Disabled Factory Default is available) Display all available VLAN IDs that you have set in the Virtual None (if no VLAN ID
Layer 3 Routing
There are three action buttons for setting up the IP Interface Table: Add To add a entry into the IP Interface Table Delete To remove the selected entries from the IP Interface Table Modify To modify the content of a selected entry in the IP Interface Table NOTE
IP Interface
The entries in the IP Interface Table will not be added to the Moxa Layer 3 switchs interface table until you click the Activate button.
2-2
3
3.
Routing Protocols
Moxa Layer 3 switches support two routing methods: static routing and dynamic routing. Dynamic routing makes use of RIP V1/V1c/V2, or OSPF. You can either choose static routing only, or combine static routing and one of the dynamic routing methods to establish your routing table. A routing entry includes the following items: the destination address, the next hop address (which is the next router along the path to the destination address), and a metric that represents the cost we need to pay to access a different network. Moxa Layer 3 switches also support two multicast routing protocols: DVMRP and PIM-DM.
Static Routing
You can define the routes yourself by specifying what is the next hop (or router) that the Layer 3 switch forwards data for a specific subnet. The settings of the Static Route will be added to the routing table and stored in the Layer 3 switch.
Layer 3 Routing
Netmask This option is used to specify the subnet mask for this IP address. Next Hop This option is used to specify the next router along the path to the destination. Metric
Routing Protocols
This option is a value assigned to an IP route for a particular network interface. The value identifies the cost associated with using that route to access the neighboring network. NOTE After inputting all of the information for a static routing configuration, click the Add button to add it to the static routing table.
RIP Settings
RIP is a distance-vector routing protocol that employs the hop count as a routing metric. RIP prevents routing loops by implementing a limit on the number of hops allowed in a path from the source to a destination. The RIP page is used to set up the RIP parameters.
3-2
Layer 3 Routing
Routing Protocols
RIP Enable Setting Enable/Disable Description This option is used to enable or disable the RIP function globally. RIP Version You can specify which version the RIP should follow. You can also select V1 Compatibility to make sure the RIP packet of Version 1 can be received as well. RIP Distribution Setting Connected Static OSPF Description The entries that are learned from the directly connected interfaces will be re-distributed if this option is enabled. this option is enabled. The entries that are learned from the OSPF will be re-distributed if this option is enabled. RIP Enable Table This is a table showing the entries learned from RIP. NOTE The RIP settings will not function until you click the Activate button. Factory Default Unchecked (disabled) (disabled) Unchecked (disabled) Factory Default Disabled
The entries that are set in a static route will be re-distributed if Unchecked
3-3
Layer 3 Routing
Routing Protocols
OSPF Settings
Each L3 switch/router has an OSPF router ID, customarily written in the dotted decimal format (e.g., 1.2.3.4) of an IP address. This ID must be established in every OSPF instance. If not explicitly configured, the default ID (0.0.0.0) will be regarded as the router ID. Since the router ID is an IP address, it does not have to be a part of any routable subnet in the network. OSPF State, OSPF Router ID, Current Router ID, Redistribute Setting OSPF State OSPF Router ID Current Router ID Redistribute Description Select the option to enable/disable the OSPF Function. Set the L3 switchs Router ID. Show the current L3 switchs Router ID. Redistribute routing information to other protocols 0.0.0.0 0.0.0.0 Connected Factory Default Disable
An OSPF domain is divided into areas that are labeled with 32-bit area identifiers which are commonly written in the dot-decimal notation of an IPv4 address. Areas are used to divide a large network into smaller network areas. They are logical groupings of hosts and networks, including their routers having interfaces connected to any of the included networks. Each area maintains a separate link state database whose information may be summarized towards the rest of the network by the connecting router. Thus, the topology of an area is unknown outside of the area. This reduces the amount of routing traffic between parts of an autonomous system.
3-4
Layer 3 Routing
Routing Protocols
Before using OSPF, we have to assign an interface for each area. Also the detailed information of the interface can be defined in this section. See the details in the following descriptions:
3-5
Layer 3 Routing
Auth Key Authentication key means the clear-text password when using Simple method of the authentication type or MD5 encrypted password when using MD5 of authentication type. MD5 Key ID MD5 authentication provides higher security than plain text
Routing Protocols
N/A
authentication. This method uses the MD5 to calculate a hash value from the contents of the OSPF packet and the authentication key. This hash value is transmitted in the packet, along with a key ID. Metric Manually set Metric / Cost of OSPF. 1
All areas in an OSPF autonomous system must be physically connected to the backbone area (Area 0.0.0.0). However, this is impossible in some cases. For those cases, users can create a virtual link to connect to the backbone through a non-backbone area and also use virtual links to connect two parts of a partitioned backbone through a non-backbone area.
3-6
Layer 3 Routing
Routing Protocols
Each of OSPF areas which consist of a set of interconnected subnets and traffic across areas is handled by routers attached to two or more areas, known as Area Border Routers (ABRs). With OSPF aggregation function, users can combine groups of routes with common addresses into a single routing table entry. The function is used to reduce the size of routing tables.
3-7
Layer 3 Routing
Routing Protocols
Gateway Redundancy
VRRP Settings
The Virtual Router Redundancy Protocol (VRRP) feature can solve the static configuration problem. VRRP enables a group of routers to form a single virtual router with a virtual IP address. The LAN clients can then be configured with the virtual routers virtual IP address as their default gateway. The virtual router is the combination of a group of routers, and also known as a VRRP group. Enable Setting Enable Description Checkmark the checkbox to enable the VRRP. Factory Default N/A
VRRP Interface Setting Entry Setting Enable Virtual IP Description Determines to enable the VRRP entry or not. L3 switches / routers in the same VRRP group must have the identical virtual IP address like VRRP ID. This virtual IP address must belong to the same address range as the real IP address of the interface. Virtual Router ID Virtual Router ID is used to assign a VRRP group. The L3 switches / routers, which operate as master / backup, should have the same ID. Moxa L3 switches / routers support one virtual router ID for each interface. The usable range of ID is 1 to 255. Priority Determines priority in a VRRP group. The priority value range is 100 1 to 255 and the 255 is the highest priority. If several L3 switches / routers have the same priority, the router with higher IP address has the higher priority. The usable range is 1 to 255. Preemption Mode Determines whether a backup L3 switch / router will take the authority of master or not. Enabled 0 Factory Default Disabled 0.0.0.0
3-8
Layer 3 Routing
Routing Protocols
Routing Table
The Routing Table page shows all routing entries used by the Moxa Layer 3 switch.
All Routing Entry List Setting All Connected Static RIP OSPF Description Show all routing rules Show connected routing rules Show static routing rules Show RIP exchanged routing rules Show OSPF exchanged routing rules Factory Default N/A N/A N/A N/A N/A
DVMRP Settings
The DVMRP page is used to set up the DVMRP table for Moxa Layer 3 switches.
DVMRP Enable Enable or disable DVMRP globally. NOTE Two different multicast routing protocols can NOT both be enabled on the same Moxa Layer 3 switch. Only either DVMRP or PIM-DM can be enabled, not both.
3-9
Layer 3 Routing
DVMRP Enable Table Enable or Disable the DVMRP by selected interface.
Routing Protocols
PIM-DM Settings
The PIM-DM page is used to set up the PIM-DM table for Moxa Layer 3 switch.
3-10
Layer 3 Routing
Routing Protocols
PIM-DM Enable Enable or Disable PIM-DM protocol globally. NOTE Two different multicast routing protocols can NOT both be enabled on the same Moxa Layer 3 switch. Only either DVMRP or PIM-DM can be enabled, not both. PIM-DM Enable Table Enable or Disable the PIM-DM by selected interface.
3-11