HP VAN SDN Controller – IP Addressing

Image

Overview

The HP SDN VAN Controller runs on the Ubuntu operating system. It is thus important for HP network engineers to know basic Ubuntu commands for installing and configuring the HP Controller.

Here are some basic commands that engineers may find useful.

Note: Commands in the output below are in bold and highlighted in yellow.

View IP address information:

The ifconfig command display interface information including IP address and mask:

sdn@sdnctl:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:21:41:72
          inet addr:192.168.56.7  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe21:4172/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17651 (17.6 KB)  TX bytes:6439 (6.4 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:75 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:21349 (21.3 KB)  TX bytes:21349 (21.3 KB)

sdn@sdnctl:~$

Temporary IP Address changes:

It is possible to configure temporary IP addresses Ubuntu. This may be useful in a testing environment. It is important to remember that these changes do not survive reboots.

To configure a temporary IP address (change current IP address till reboot):

$ sudo ifconfig eth0 10.1.1.1 netmask 255.255.255.0

The change can be verified by using ifconfig:

sdn@sdnctl:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:21:41:72
          inet addr:10.1.1.1  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe21:4172/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:257 errors:0 dropped:0 overruns:0 frame:0
          TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:59444 (59.4 KB)  TX bytes:17263 (17.2 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:133 errors:0 dropped:0 overruns:0 frame:0
          TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:30013 (30.0 KB)  TX bytes:30013 (30.0 KB)

sdn@sdnctl:~$

Once Ubuntu is rebooted, the IP address will revert back to the previous setting.

Permanent Static IP Address changes:

To change the IP address of the Ubuntu server permanently, do the following:
1. Open the /etc/network/interfaces file using nano or vi or another editing application of your choice and then either change or comment out the existing settings:

$ sudo nano /etc/network/interfaces

In this example I have added a # in front of the current IP address settings (highlighted in yellow):

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp

#auto eth0
#iface eth0 inet static
#address 192.168.56.7
#netmask 255.255.255.0
#network 192.168.56.0
#broadcast 192.168.56.255
#gateway 192.168.56.1

2. Add or edit with the required settings:

auto eth0
iface eth0 inet static
address 10.1.1.1
netmask 255.255.255.0
network 10.1.1.0
broadcast 10.1.1.255
gateway 10.1.1.254

3. Save and close the file (nano used in this example):

Control-X
Y to save
Enter

Multiple IP addresses on single physical interface:

To configure multiple IP addresses on a physical interface, create an Alias and then configure an IP address.

1. Open the /etc/network/interfaces file using nano or vi or another editing application of your choice and then either change or comment out the existing settings:

$ sudo nano /etc/network/interfaces

In this example. lines with a # in front are for comments:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface using DHCP
auto lo
iface lo inet loopback

# Use DHCP for main IP address on eth0
iface eth0 inet dhcp

# Create an Alias for secondary IP address
auto eth0:0
iface eth0:0 inet static
  address 10.10.10.122
  netmask 255.255.255.0

#Wireless interface using DHCP
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

3. Save and close the file (nano used in this example):

Control-X
Y to save
Enter

4. Use the ifconfig command to view the results:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:fe:f6:13
          inet addr:192.168.56.79  Bcast:192.168.56.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:505 errors:0 dropped:0 overruns:0 frame:0
          TX packets:358 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:75363 (73.5 KiB)  TX bytes:35985 (35.1 KiB)

eth0:0    Link encap:Ethernet  HWaddr b8:27:eb:fe:f6:13
          inet addr:10.10.10.122  Bcast:10.10.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

$



Tags: , , , , , ,


About :

These days I am involved in some exciting SDN and OpenFlow projects involving the HP VAN SDN Controller, HP ProVision and HP Comware switches. These new developments in the networking world combine my passions of networking and application development. I hope to write some interesting blog entries on these exiting topics. I am both a Cisco CCIE #11023 and HP MASE as well as a Cisco Certified Systems Instructor (CCSI #22787) and Certified HP Instructor. I have been training networking courses for well over 10 years teaching on a wide range of topics including routing and switching, VoIP, OpenFlow and SDN. I have delivered instructor led courses all over the world. I started working with Cisco Unified Communications Manager when it was still called Cisco Call Manager and have been deploying, troubleshooting and teaching Unified Communications products since version 3.0. I have developed various network utilities such as the VPN Config Generator and others to help engineers in their day to day jobs. I also develop software, training materials, EBooks, videos and other products which are used throughout the world. I have designed, implemented and managed networks ranging from single sites to those that span 50 countries.

View all posts by


No comments yet.

Leave a Reply

  • Proper format "info@pakiti.com"