Showing posts with label Unix networking. Show all posts
Showing posts with label Unix networking. Show all posts

Wednesday, February 26, 2014

How to find VLANs/Portgroups configured in ESXi Standard switch?

Note: Verified for ESXI version 5.1

# 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

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.1
Once 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)

Wednesday, July 8, 2009

How to check network card settings in Solaris 10?

In following example, this server has only one cable going to network with 1000Mbps.


# dladm show-dev
bge0 link: up speed: 1000 Mbps duplex: full
bge1 link: unknown speed: 0 Mbps duplex: unknown
bge2 link: unknown speed: 0 Mbps duplex: unknown
bge3 link: unknown speed: 0 Mbps duplex: unknown