# esxcli network vswitch standard list vSwitch0 Name: vSwitch0 Class: etherswitch Num Ports: 128 Used Ports: 4 Configured Ports: 128 MTU: 1500 CDP Status: listen Beacon Enabled: false Beacon Interval: 1 Beacon Threshold: 3 Beacon Required By: Uplinks: vmnic0 Portgroups: VM Network, Management Network vSwitch1 Name: vSwitch1 Class: etherswitch Num Ports: 1024 Used Ports: 8 Configured Ports: 1024 MTU: 1500 CDP Status: listen Beacon Enabled: false Beacon Interval: 1 Beacon Threshold: 3 Beacon Required By: Uplinks: vmnic5, vmnic1 Portgroups: VLAN198, NFS vSwitch2 Name: vSwitch2 Class: etherswitch Num Ports: 1024 Used Ports: 17 Configured Ports: 1024 MTU: 1500 CDP Status: listen Beacon Enabled: false Beacon Interval: 1 Beacon Threshold: 3 Beacon Required By: Uplinks: vmnic7, vmnic6, vmnic3, vmnic2 Portgroups: VLAN124, VLAN115, VLAN114, VLAN112, VLAN110, VLAN106, VLAN105, VLAN104, VLAN103, VLAN102, VLAN101, VLAN100, VLAN99, VLAN98, VLAN97, VLAN96, VLAN79, VLAN113, VLAN111, VLAN76, VLAN78
Showing posts with label Virtual network interface. Show all posts
Showing posts with label Virtual network interface. Show all posts
Wednesday, February 26, 2014
How to find VLANs/Portgroups configured in ESXi Standard switch?
Note: Verified for ESXI version 5.1
Labels:
ESXi,
switches,
Unix networking,
Virtual network interface,
VLAN,
vmware
Thursday, November 29, 2012
How to configure multiple IP addresses on same Network card in Linux?
[root@client1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE="eth1" ONBOOT=yes TYPE=Ethernet BOOTPROTO=none IPADDR=192.168.122.3 PREFIX=24 GATEWAY=192.168.122.1 NAME="System eth1" [root@client1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1:1 DEVICE="eth1:1" ONBOOT=yes TYPE=Ethernet BOOTPROTO=none IPADDR=192.168.122.30 PREFIX=24 GATEWAY=192.168.122.1Once the virtual network interface file is setup correctly, then either restart system or use "service network restart" or use "ifup eth1:1" (whatever suitable & feasible - depends case to case) to bring virtual interface up. It will show up as follows:
[root@client1 ~]# ifconfig -a
eth1 Link encap:Ethernet HWaddr 52:54:00:18:FB:B0
inet addr:192.168.122.3 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::5054:ff:fe18:fbb0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:302 errors:0 dropped:0 overruns:0 frame:0
TX packets:231 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24975 (24.3 KiB) TX bytes:33754 (32.9 KiB)
Interrupt:11 Base address:0x6000
eth1:1 Link encap:Ethernet HWaddr 52:54:00:18:FB:B0
inet addr:192.168.122.30 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0x6000
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:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:960 (960.0 b) TX bytes:960 (960.0 b)
Tuesday, July 21, 2009
How to configure virtual network interfaces in Solaris 8/9/10?
Creating virtual network interfaces in Solaris 8 onwards is very easy. Here is the three steps to do this:
1) Create the hostname.INTERFACE_NAME:NUMBER files for interface and inside, name the interface.
2) Edit /etc/hosts file to include the IP addresses for these virtual interfaces.
3) Reboot the system. It will come up with three IP addresses on one physical card (as shown in the following example).
(Note: If you are an advanced user/admin, step #3 can be replaced with ifconfig command with necessary arguments. Whenever you reboot next time, these settings will be retained.)
NOW Reboot the system. Check my special note if you are advanced user.
Upon reboot, it will show as below:
1) Create the hostname.INTERFACE_NAME:NUMBER files for interface and inside, name the interface.
2) Edit /etc/hosts file to include the IP addresses for these virtual interfaces.
3) Reboot the system. It will come up with three IP addresses on one physical card (as shown in the following example).
(Note: If you are an advanced user/admin, step #3 can be replaced with ifconfig command with necessary arguments. Whenever you reboot next time, these settings will be retained.)
# ls -l /etc/hostname*
-rw-r--r-- 1 root root 8 Mar 28 2008 /etc/hostname.eri0
-rw-r--r-- 1 root other 16 Oct 23 2008 /etc/hostname.eri0:1
-rw-r--r-- 1 root other 17 Oct 23 2008 /etc/hostname.eri0:2
# cat /etc/hostname.eri0
unixgeekws
# cat /etc/hostname.eri0:1
unixgeekws-virtual
# cat /etc/hostname.eri0:2
unixgeekws-virtual1
# cat /etc/hosts
# Internet host table
127.0.0.1 localhost
10.20.30.145 unixgeekws loghost
10.20.30.146 unixgeekws-virtual
10.20.30.147 unixgeekws-virtual1
NOW Reboot the system. Check my special note if you are advanced user.
Upon reboot, it will show as below:
# ifconfig -a
lo0: flags=1000849mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1000843mtu 1500 index 2
inet 10.20.30.145 netmask ffffff00 broadcast 10.20.30.255
ether 0:3:ba:44:f4:17
eri0:1: flags=1000843mtu 1500 index 2
inet 10.20.30.146 netmask ffffff00 broadcast 10.20.30.255
eri0:2: flags=1000843mtu 1500 index 2
inet 10.20.30.147 netmask ffffff00 broadcast 10.20.30.255
Labels:
Solaris,
Virtual network interface
Subscribe to:
Posts (Atom)