ubuntu:networking:configuring_virtual_network_interfaces
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:networking:configuring_virtual_network_interfaces [2021/01/07 12:52] – created peter | ubuntu:networking:configuring_virtual_network_interfaces [2021/01/08 12:01] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - Networking - Configuring virtual network interfaces ====== | ||
- | |||
- | More that one IP address can be assigned to a single physical network interface. | ||
- | |||
- | ===== Create Temporary Virtual Network Interface ===== | ||
- | |||
- | <code bash> | ||
- | ifconfig eth0:0 123.123.123.123 | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | The only most important condition for creating the virtual network interface is the physical network interface, as in our case eth0 must exists. | ||
- | |||
- | </ | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ===== Check existing interface ===== | ||
- | |||
- | <code bash> | ||
- | ifconfig eth0 | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | eth0 Link encap: | ||
- | inet addr: | ||
- | Mask: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Ping the existing interface ===== | ||
- | |||
- | <code bash> | ||
- | ping 192.168.1.69 | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | PING 192.168.1.69 (192.168.1.69) 56(84) bytes of data. | ||
- | 64 bytes from 192.168.1.69: | ||
- | 64 bytes from 192.168.1.69: | ||
- | 64 bytes from 192.168.1.69: | ||
- | 64 bytes from 192.168.1.69: | ||
- | 64 bytes from 192.168.1.69: | ||
- | |||
- | --- 192.168.1.69 ping statistics --- | ||
- | 5 packets transmitted, | ||
- | rtt min/ | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Configure a new virtual interface based on eth0 ===== | ||
- | |||
- | < | ||
- | ifconfig eth0:0 | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | eth0: | ||
- | UP BROADCAST MULTICAST | ||
- | Interrupt: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Assign an IP Address to the virtual interface ===== | ||
- | |||
- | <code bash> | ||
- | ifconfig eth0:0 192.168.1.123 | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Check the virtual interface ===== | ||
- | |||
- | <code bash> | ||
- | ifconfig eth0:0 | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | eth0: | ||
- | inet addr: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Ping the virtual interface ===== | ||
- | |||
- | <code bash> | ||
- | ping 192.168.1.123 | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | PING 192.168.1.123 (192.168.1.123) 56(84) bytes of data. | ||
- | 64 bytes from 192.168.1.123: | ||
- | 64 bytes from 192.168.1.123: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | |||
ubuntu/networking/configuring_virtual_network_interfaces.1610023928.txt.gz · Last modified: 2021/01/07 12:52 by peter