configuring ip static routes on the haulpass v60s · 1 configuring ip static routes on the haulpass...

8
1 Configuring IP Static Routes on the HaulPass V60s Configuring IP Static Routes on the HaulPass V60s Introduction This Tech Note describes basic usage of Vubiq’s Industrial Command Line Interface (ICLI) to configure the DHCP client within a Vubiq HaulPass V60s terminal. The ICLI is a comprehensive management interface on the device available via Telnet. Terminal input/output is indicated as in the following. The “#” denotes the user prompt. The bold text indicates what the user types. # configure terminal (config)# hostname switch switch(config)# end switch# Basic IPv4 An IP address identifies a device on an IP network. The IP version 4 (IPv4) address is 32 bits long. An IPv4 address can only be assigned through a VLAN interface. The address can be set manually (called a static IP) or automatically by using the DHCP protocol. The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2 for a Low transmit terminal and 192.168.66.3 for a High transmit terminal. You will have to telnet to the terminal to perform the steps below. The factory default login is username admin with no password. Static IP Address In the application software, VLAN 1 is often used as the “Management VLAN.” The objective is to assign an IP address to the device on VLAN 1. The static setup below is also the default setup: # configure terminal (config)# hostname switch switch(config)# end switch# configure terminal switch(config)# interface vlan 1 switch(config-if-vlan)# ip address 192.0.2.1 255.255.255.0 At this point, you will lose access to the V60s if the terminal had a different address prior to sending this command. You will have to start a new telnet session to the new address. switch(config-if-vlan)# end switch# DHCP Address The application software includes a DHCP client that must be enabled in order to automatically obtain an IP address from a DHCP server located on the Network. Note: Vubiq does not recommend setting the IP address via DHCP, as many DHCP servers are configured to only provide an address to end nodes and not bridges.

Upload: lamdat

Post on 03-Sep-2018

251 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Configuring IP Static Routes on the HaulPass V60s · 1 Configuring IP Static Routes on the HaulPass ... The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2

1 Configuring IP Static Routes on the HaulPass V60s

Configuring IP Static Routes on the HaulPass V60s Introduction This Tech Note describes basic usage of Vubiq’s Industrial Command Line Interface (ICLI) to configure the DHCP client within a Vubiq HaulPass V60s terminal. The ICLI is a comprehensive management interface on the device available via Telnet.

Terminal input/output is indicated as in the following. The “#” denotes the user prompt. The bold text indicates what the user types. # configure terminal (config)# hostname switch switch(config)# end switch#

Basic IPv4 An IP address identifies a device on an IP network. The IP version 4 (IPv4) address is 32 bits long. An IPv4 address can only be assigned through a VLAN interface. The address can be set manually (called a static IP) or automatically by using the DHCP protocol.

The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2 for a Low transmit terminal and 192.168.66.3 for a High transmit terminal. You will have to telnet to the terminal to perform the steps below. The factory default login is username admin with no password.

Static IP Address In the application software, VLAN 1 is often used as the “Management VLAN.” The objective is to assign an IP address to the device on VLAN 1.

The static setup below is also the default setup: # configure terminal (config)# hostname switch switch(config)# end switch# configure terminal switch(config)# interface vlan 1 switch(config-if-vlan)# ip address 192.0.2.1 255.255.255.0

At this point, you will lose access to the V60s if the terminal had a different address prior to sending this command. You will have to start a new telnet session to the new address. switch(config-if-vlan)# end switch#

DHCP Address The application software includes a DHCP client that must be enabled in order to automatically obtain an IP address from a DHCP server located on the Network.

Note: Vubiq does not recommend setting the IP address via DHCP, as many DHCP servers are configured to only provide an address to end nodes and not bridges.

Page 2: Configuring IP Static Routes on the HaulPass V60s · 1 Configuring IP Static Routes on the HaulPass ... The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2

2 Configuring IP Static Routes on the HaulPass V60s

# configure terminal (config)# hostname switch switch(config)# end Switch# configure terminal Switch(config)# interface vlan 1 Switch(config-if-vlan)# ip address dhcp Switch(config-if-vlan)# end switch#

DHCP Address with Fallback Using the DHCP client/server approach is often sufficient for small local area networks, but sometimes there is no DHCP server on the network, and therefore it can be comprehensive to default to an IP address after a timeout period. # configure terminal (config)# hostname switch switch(config)# end switch# configure terminal switch(config)# interface vlan 1 switch(config-if-vlan)# ip address dhcp fallback 192.168.66.2 255.255.255.0 timeout 60 switch(config-if-vlan)# end switch# copy running-config startup-config Building configuration... % Saving 1370 bytes to flash:startup-config switch#

<reboot>

Display IP Address After configuration is complete the resulting IP address can be inspected. The below output is displayed when the static address is setup. switch# show ip interface brief Interface Address Method Status ---------------- -------------------- -------- ------ VLAN 1 192.168.66.2/24 Manual UP switch#

When the DHCP negotiation is successful the response shown below will be displayed.

switch# show ip interface brief Interface Address Method Status ---------------- -------------------- -------- ------ VLAN 1 10.10.132.82/23 DHCP UP switch#

Page 3: Configuring IP Static Routes on the HaulPass V60s · 1 Configuring IP Static Routes on the HaulPass ... The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2

3 Configuring IP Static Routes on the HaulPass V60s

The command “show ip interface brief” displays configured and active IP interfaces. Active interfaces should show a status of “UP”. If this status is not seen, there may be no link on any port. If the DHCP negotiation failed then the fallback IP of 192.168.66.2 would be assigned. It is possible to obtain some statistics about the DHCP session with the command shown below. switch# show ip dhcp detailed statistics client GigabitEthernet 1/1 Statistics: ------------------------------- Rx Discover: 0 Tx Discover: 0 Rx Offer: 0 Tx Offer: 0 Rx Request: 0 Tx Request: 0 Rx Decline: 0 Tx Decline: 0 Rx ACK: 0 Tx ACK: 0 Rx NAK: 0 Tx NAK: 0 Rx Release: 0 Tx Release: 0 Rx Inform: 0 Tx Inform: 0 Rx Lease Query: 0 Tx Lease Query: 0 Rx Lease Unassigned: 0 Tx Lease Unassigned: 0 Rx Lease Unknown: 0 Tx Lease Unknown: 0 Rx Lease Active: 0 Tx Lease Active: 0 Rx Lease Active: 0 Tx Lease Active: 0 Rx Discarded checksum error: 0 GigabitEthernet 1/2 Statistics: ------------------------------- Rx Discover: 0 Tx Discover: 70 Rx Offer: 0 Tx Offer: 0 Rx Request: 0 Tx Request: 0 Rx Decline: 0 Tx Decline: 0 -- more --, next page: Space, continue: g, quit: ^C

Another way to show the IP address is by displaying the actual VLAN. switch# show interface vlan 1 VLAN1 LINK: 68-28-f6-00-0c-81 Mtu:1500 <UP BROADCAST RUNNING MULTICAST> IPv6: fe80::6a28:f6ff:fe00:c81/64 <UP RUNNING> IPv4: 192.168.66.2/24 192.168.66.255 DHCP: State: SELECTING switch#

Using the Obtained Network Connection The basic system configuration is complete. Management connectivity can be verified by issuing a ping command to a well-known external IP address: switch# ping ip 10.10.130.66 PING server 10.10.130.66, 56 bytes of data. 64 bytes from 10.10.130.66: icmp_seq=0, time=10ms 64 bytes from 10.10.130.66: icmp_seq=1, time=10ms 64 bytes from 10.10.130.66: icmp_seq=2, time=0ms 64 bytes from 10.10.130.66: icmp_seq=3, time=0ms 64 bytes from 10.10.130.66: icmp_seq=4, time=0ms Sent 5 packets, received 5 OK, 0 bad switch#

If the ping is successful, network logins can now be performed via telnet or ssh to the address on VLAN interface 1, here 10.10.132.82 (or 192.168.66.2).

Page 4: Configuring IP Static Routes on the HaulPass V60s · 1 Configuring IP Static Routes on the HaulPass ... The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2

4 Configuring IP Static Routes on the HaulPass V60s

Basic IPv4 Routing The switch Application software implements software to handle static IPv4 routing.

Traditional Network Routing involves both a TCP/IP host and an IP Router. To understand the different parameters to setup consider the following figure. It shows a traditional network with two IP networks and a Router allowing them to talk together. Each IP network needs to have an IP address assigned and a gateway where packets can be forwarded to.

Figure 1. IP Routing using a router and switches

Using a VLAN Aware Switch By using a VLAN aware switch the same network can be configured as shown below. Using VLANs is a method of separating flows within the same switch.

Figure 2. IP Routing using a router and VLAN-aware switch

Using a Layer 3 Switch Now finally, by using a L3 switch the same network will look as the figure below.

Figure 3. IP Routing using a layer 3 switch

Page 5: Configuring IP Static Routes on the HaulPass V60s · 1 Configuring IP Static Routes on the HaulPass ... The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2

5 Configuring IP Static Routes on the HaulPass V60s

The fundamental method of IP routing is a destination-driven process. All frames that enter the Router are inspected to determine the destination IP address. Based on that address the router lookup engine will browse the routing table to determine where to send the frame.

Example Configuration Using ICLI The following steps implement the setup from the above figure:

Step 1: Create VLAN 1001 and 1002 in order to separate the two IP networks. switch# configure terminal switch(config)# vlan 1001 switch(config-vlan)# vlan 1002 switch(config-vlan)# exit switch(config)# exit switch#

Step 2: Define the port VLAN for each port by using the switchport access vlan command to specify the VLAN for each interface. Hereby untagged frames are classified to this VLAN. switch# configure terminal switch(config)# interface GigabitEthernet 1/1 switch(config-if)# switchport access vlan 1001

Note: At this point if you are connected to the V60s through port 1 you will lose access to the switch and have to connect through an alternate mechanism. switch(config-if)# exit switch(config)# interface GigabitEthernet 1/2 switch(config-if)# switchport access vlan 1002

Note: At this point if you are connected to the V60s through port 2 you will lose access to the switch and have to connect through an alternate mechanism. switch(config-if)# exit switch(config)# exit switch#

Step 3: Configure router leg A and B by using the ip address command to set primary IP address for the interfaces. switch(config)# interface vlan 1001 switch(config-if-vlan)# ip address 10.0.1.1 255.255.255.0 switch(config-if-vlan)# exit switch(config)# interface vlan 1002 switch(config-if-vlan)# ip address 10.0.2.1 255.255.255.0 switch(config-if-vlan)# end switch(config)# end switch#

Example Configuration Using the WebGUI Create VLAN 1001 and 1002, and define the port VLAN for each port.

Page 6: Configuring IP Static Routes on the HaulPass V60s · 1 Configuring IP Static Routes on the HaulPass ... The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2

6 Configuring IP Static Routes on the HaulPass V60s

Figure 4. Configure router leg A and B to set primary IP address for the interfaces Note: At this point if you are connected to the V60s through port 1 or port 2 you will lose access to the switch when you press the save button and have to connect through an alternate mechanism.

Example Connecting Two L3 Switches The figure below shows how two L3 switches can be interconnected.

Figure 5 - IPv4 Static Route Step 1: Create VLAN 100, 1001 and 1002. Setup port VLAN for each port on the left switch. switch-left# configure terminal switch-left(config)# vlan 100 switch-left(config-vlan)# vlan 1001 switch-left(config-vlan)# vlan 1002 switch-left(config-vlan)# exit switch-left(config)# interface GigabitEthernet 1/1 switch-left(config-if)# switchport access vlan 1001 switch-left(config-if)# exit switch-left(config)# interface GigabitEthernet 1/2 switch-left(config-if)# switchport access vlan 1002 switch-left(config-if)# exit switch-left(config)# interface GigabitEthernet 1/3 switch-left(config-if)# switchport access vlan 100 switch-left(config-if)# exit switch-left(config)# exit switch-left#

Page 7: Configuring IP Static Routes on the HaulPass V60s · 1 Configuring IP Static Routes on the HaulPass ... The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2

7 Configuring IP Static Routes on the HaulPass V60s

Step 2: Configure router leg A, B and C to set IP address for each interface on the left switch. Switch-left(config)# interface vlan 1001 Switch-left(config-if-vlan)# ip address 10.0.1.1 255.255.255.0 Switch-left(config-if-vlan)# exit Switch-left(config)# interface vlan 1002 Switch-left(config-if-vlan)# ip address 10.0.2.1 255.255.255.0 Switch-left(config-if-vlan)# exit Switch-left(config)# interface vlan 100 Switch-left(config-if-vlan)# ip address 20.0.0.1 255.255.255.0 Switch-left(config-if-vlan)# exit Switch-left(config)# exit Switch-left#

Step 3: Configure IP route on the left switch by using the ip route command to add a static route entry with next-hop set to 20.0.0.2. switch-left(config)# ip route 10.1.0.0 255.255.0.0 20.0.0.2 switch-left(config)# end

Step 4: Show the static routes for the left switch. switch-left# show ip route 0.0.0.0/0 via 10.10.132.1 <UP GATEWAY HW_RT> 10.0.1.0/24 via interface index 200001001 <UP HW_RT> 10.0.2.0/24 via interface index 200001002 <UP HW_RT> 10.1.0.0/16 via 20.0.0.2 <UP GATEWAY HW_RT> 10.10.132.0/23 via interface index 200000001 <UP HW_RT> 127.0.0.1/32 via 127.0.0.1 <UP HOST> switch-left#

Step 5: Create VLAN 200, 1001 and 1002. Setup port VLAN for each port on the right switch. switch-right# configure terminal switch-right(config)# vlan 200 switch-right(config-vlan)# vlan 1001 switch-right(config-vlan)# vlan 1002 switch-right(config-vlan)# exit switch-right(config)# interface GigabitEthernet 1/1 switch-right(config-if)# switchport access vlan 1001 switch-right(config-if)# exit switch-right(config)# interface GigabitEthernet 1/2 switch-right(config-if)# switchport access vlan 1002 switch-right(config-if)# exit switch-right(config)# interface GigabitEthernet 1/3 switch-right(config-if)# switchport access vlan 200 switch-right(config-if)# exit switch-right#

Step 6: Configure router leg A, B and C to set IP address for each interface on the right switch. switch-right# configure terminal switch-right(config)# interface vlan 1001 switch-right(config-if-vlan)# ip address 10.1.1.1 255.255.255.0 switch-right(config-if-vlan)# exit switch-right(config)# interface vlan 1002 switch-right(config-if-vlan)# ip address 10.1.2.1 255.255.255.0 switch-right(config-if-vlan)# exit switch-right(config)# interface vlan 200 switch-right(config-if-vlan)# ip address 20.0.0.2 255.255.255.0 switch-right(config-if-vlan)# exit switch-right(config)# exit switch-right#

Page 8: Configuring IP Static Routes on the HaulPass V60s · 1 Configuring IP Static Routes on the HaulPass ... The factory default IPv4 address for the HaulPass V60s terminal is 192.168.66.2

8 Configuring IP Static Routes on the HaulPass V60s

Step 7: Configure IP route on the right switch by using the ip route command to add a static route entry with next-hop set to 20.0.0.1. switch-right# configure terminal switch-right(config)# ip route 10.0.0.0 255.255.0.0 20.0.0.1 switch-right(config)# end switch-right#

Example Configuration of the Left Switch using the WebGUI

Figure 6. Example configuration of the left switch using the WebGUI

Vubiq Networks, Inc. 9231 Irvine Blvd, Irvine, CA 92618 USA www.vubiqnetworks.com