Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-11-2011, 09:07 AM   #1
Registered: Nov 2007
Posts: 133

Rep: Reputation: 0
Connecting CentOS to the network via a L2 switch?

Hi all,

I have a CentOS 5.5 machine and would like to connect it to the internet via a Hawking L2 switch.
The Hawking L2 switch is already connected to a live network port on the wall and now all I have to do is connecting the machine to the L2 switch.

On the machine there are different network outlets all numbered with different numbers. How do I know which one I should connect to the L2 switch?

The ifconfig returns definitions for eth4, eth5 and eth6 so I tried connecting the cable to no. 4 and it didn't work, tried 5 and 6 and no luck and the machine still can't ping another machine which is inside the same network.

Could someone please shed some light on this please?

Thanks in advance
Old 05-11-2011, 09:47 AM   #2
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
Lightbulb some network cabling debug tip

This works on Redhat and Fedora, so should work on centos:

configure all your /etc/sysconfig/network-scripts/ifcfg-eth* as explained in
You should also mention the GATEWAY in here (the default route to the outside world) as explained here:

then restart the network (/etc/init.d/network restart)

then in a terminal, run this:

tail -f /var/log/messages
then unplug and plug back each network cable of the server one by one. You should see a message appear with the ethernet interface name. Then you can add stickers on the ports and cables so you don't need to do that over and over.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting two computers without a hub/switch/router? pilot1 Linux - Networking 8 07-15-2008 05:31 AM
connecting linux SUSE10.3 to internet via ethernet switch ammarm Linux - Networking 4 05-24-2008 06:13 PM
Connecting different subnets on a single switch taiwo222 Linux - Networking 1 02-05-2008 03:09 PM
Connecting to HP Procurve switch Kid Cuisine Linux - Newbie 2 04-06-2004 11:45 AM
Connecting to a device (say, a switch) using serial port spuud Linux - Networking 1 09-20-2003 05:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration