LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-15-2015, 01:33 AM   #1
michael.r
LQ Newbie
 
Registered: May 2014
Posts: 10

Rep: Reputation: Disabled
how to set another networking interface in centos


Hi, I really need to set another network device, this is what i did:

First check that the network card is really installed with hwinfo --short

network:
eth1 D-Link DGE-528T Gigabit Ethernet Adapter
eth0 Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller
network interface:

And i added ifcfg-eth1 in the /etc/sysconfig/networking/profiles
Also to the /etc/sysconfig/networking/devices
Aso to the /etc/sysconfig/network-scripts

The content of ifcfg is

DEVICE=eth1
BOOTPROTO=static
HWADDR=78:54:...
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID=0623faf9-...
IPADDR=192.168.1.3
NETMASK=255.255.255.0
GATEWAY=192.169.1.1
DNS1=192.169.1.1
DNS2=8.8.8.8
IPV6INIT=no
USERCTL=no
BRIDGE=no

Then i restart the network service it says

Shutting down interface br0: [ OK ]
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Bringing up interface eth1: Device does not seem to be present, delaying initialization.
[FAILED]
Bringing up interface br0: Determining if ip address 192.168.1.2 is already in use for device br0...
[ OK ]

So what is wrong??? Please help me thanks guys
 
Old 05-15-2015, 09:45 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
What does the following command display?

Code:
ifconfig -a
 
Old 05-15-2015, 06:30 PM   #3
michael.r
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi Robert, thank you very much for your time to reply. I've got it figured out and it's working now. I've made a typo in the ifcfg-eth1. I fixed it and it worked.

Now i have another question. The reason why i need two network interfaces is because i thought that the sales program i'm running is using one network interface too much that it always freeze.

Now that i've activated two network interfaces, how do i know that it's working properly. I mean is there anyway i can track communication packages between client and respective network interface's IP address?

Thanks
Mike
 
Old 05-18-2015, 09:07 AM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
No sure what you are looking for but maybe something from one of the following links will fit your needs:

18 commands to monitor network bandwidth on Linux server
20 Command Line Tools to Monitor Linux Performance
5 Ways to Monitor Network traffic in Linux terminal
 
  


Reply


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
lo interface is down affter networking restart zlobotron Linux - Networking 3 03-24-2014 03:46 AM
Using puppet for networking interface reconfiguration wills Linux - Server 3 11-14-2011 04:53 AM
CentOS in one VirtualBox, Windows in another - can I set up Samba in the CentOS VB? ismism Linux - Newbie 10 08-08-2010 03:34 PM
LXer: How to set up host interface networking for VirtualBox on Ubuntu LXer Syndicated Linux News 0 12-18-2008 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:34 AM.

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