How to verify network communication on a CentOS 6 Linux machine
search cancel

How to verify network communication on a CentOS 6 Linux machine

book

Article ID: 178577

calendar_today

Updated On:

Products

Mobility Suite

Issue/Introduction

 

Resolution

How to verify network communication on a CentOS 6 Linux machine

(Part of a series on Symantec Mobility: Suite)

Root Shell Access

1.       The # symbol at the beginning of the command line signifies that this session has root privileges. 

Note: If the server was deployed using a template and a user account is needed to access the console. Log into the console with the provided user credentials.  Type su and hit Enter to elevate the session to root privileges.  If the sudoer’s methodology is being used type sudo su to elevate the account.  Prefixing any command with sudo will elevate that command with root privileges.  Mobility: Suite requires full root shell access to complete its installation.

2.       Continue to Confirm Network Connectivity.

Tip: Press the Tab key after typing a few characters of the filename listed in a command, it should finish the remainder of it. This should make typing commands quicker.  Pressing Tab twice will display all the available options beginning with that word, file or directory.

Confirm Network Connectivity

1.       Verify Internet communication by typing, as root: ping play.google.com, to cancel the echo: while holding down the Ctrl key press c this will return the console back to the root shell:

Tip: If no ICMP response is received, verify whether ICMP is blocked or type /sbin/ifconfig to verify the network settings.  To edit the network configuration type vi /etc/sysconfig/network-scripts/ifcfg-eth0 and Enter.  A vi edit view will appear.  Type i to begin editing.  The up, down, left & right arrows must be used to navigate through this configuration file.  Make the appropriate changes to the network settings.  Hit the Esc key once and while holding Shift press the : (colon) key once and release.  Now type wq and hit Enter; this will write the changes to the file.  To exit without making any changes, instead of wq type q! and hit Enter.  Now restart the network services to reapply this configuration script by typing, as root: service network restart and Enter. Repeat these steps until the correct network configuration is obtained.

For example:

Important: A working network configuration is required before proceeding further.  It is highly recommended to set the ONBOOT= to yes as shown above.  The hardware and ID of the NIC may be shown but they are optional.  Remember that after any changes are made it will be necessary to restart the network services.

Tip: Quick guide to vi:
i
à Insert
Esc key
à End insert mode and returns to command mode which allows the below two commands:
:q!
à Colon followed by q! quits without making any changes.
:wq
à Colon followed by wq writes and quits, saving changes.