ESXGuide - Network
   
     
 
 
     
 
Main Menu
Home
Articles, Tips, Solutions
Contact
Sitemap
Downloads
Login Form





Lost Password?
No account yet? Register
To add contents please register and login.

Index arrow Server arrow Linux

Network PDF Print E-mail
Network
findnic 

The findnic command lets you send network traffic from a specified network adapter so you can observe the LEDs on the adapters and see which physical adapter is associated with that device name. The format of the command is

findnic <options> <nic-name> <local-ip> <remote-ip>

 -f  Do a flood ping. 
 -i <seconds> Send pings at specified interval. 

Example:

findnic -f vmnic1 10.2.0.5 10.2.0.4

findnic –i 3 vmnic1 10.0.0.1 192.168.1.10

The above command will send ICMP echo requests to 192.168.1.10 every 3 seconds.

The NIC allocated to the VMKernel does not have an IP address. We need to give an IP address temporary to this NIC, it is specified as the first IP parameter. The second IP is the ICMP destination

ifconfig Set and display the network interface configuration information for devices used by the service console.

To set/change the IP-address Example:
ifconfig eth0 10.3.44.10  netmask 255.255.255.0

Can also be used to bring interfaces up or down

ifconfig eth0 up
ifconfig lo down

Ifup eth0Brings interface “eth0” up
Ifdown eth0   Takes interface “eth0” down.
modinfo Displays the option of a loaded module.

modinfo e1000   Will produce a list of possible setting on the Network adapter as flow control

With vmkload_mod -l you can  list all loaded modules 

kudzu This is the RedHat's tool to detect and configure hardware: adding new and removing old. When you run kudzu, or system runs it at bootup, be careful. Kudzu might offer to remove hardware you have dedicated solely to the VMs. Know your hardware and configuration. It might be a good idea to refer to /etc/modules.conf file before running kudzu. A safe action to select in kudzu is "Do nothing". Select it when in doubt.
lsmodeshows information about all loaded modules

Lists drivers loaded for the service console linux. Remember this command differs from the vmkload_mod utility which shows the modules loaded for the VMkernel.

Module          Size   Used by Tainted: PF
vmnixmod        177056 121
e1000           68456  0 (unused)
usb-uhci        21220  0 (unused)
usbcore         50112  1 [usb-uhci]
megaraid2       32928  6

The same information can be found by cat /proc/modules

lspciList PCI devices
H1    uses direct HW access
-n    shows PCI vendor and device codes
-t     Print tree of PCI Devices -tv for verbose tree
-v    verbose mode
-vv   very verbose mode
-M   never use.It might crash ESX Server

Also check the file /proc/pci

mii-toolModify the NIC settings

Example:
mii-tool 100baseTx-FD eth0 (This sets the serviceconsole NIC to 100 Mbps and Full)
mii-tool 100baseTx-FD vmnic1 (This sets the Virtual Machine NIC to 100 Mbps and Full)

You could also use the MUI as well

netconfigNetwork configuration setup program
netstatShows currently active network connections
routeModify or print routingtable

route                               Prints routing table
route del –net default              Deletes the default gateway
route add –net default gw 10.20.0.1 Adds a new default gateway

smbclient

View and connect SMB (Microsoft networking) hosts. Test connection before updating /etc/fstab file.

smbclient –I 192.168.4 –U username –L computername  Will list the available Microsoft Network shares

showmountshowmount lists all the clients that have remotely mounted a filesystem from host.
-d    list directories that have been remotely mounted by clients 
-a    print all remote mounts in the format 
      hostname:directory 
      where hostname is the name of the client and directory is the root of the filesystem that has been mounted 
-e    print the list of exported filesystems 
setupAllows changing of NIC, region, firewall, mouse, keyboard
 
 

Design: Digital Eye Template