Sponsored Content
Full Discussion: Dual Ethernet in CentOS
Top Forums UNIX for Advanced & Expert Users Dual Ethernet in CentOS Post 302539196 by bitlord on Friday 15th of July 2011 03:50:10 PM
Old 07-15-2011
Ok is this a project your doing at home or at work?

What is the default gateway/router?

Also after you make changes are you restating the network service?
Code:
service network restart

I would try to get the primary network working 1st. I guess this would be the DHCP/Internet access one. Which ever network that the router that controls the Internet access. Set the NIC using the GUI tool at system --> Admin --> Network. in there pic the NIC and input the info like router/gatway, DHCP. then use the command above to restart the network.
After that the network interface should work and you should be able to surf the web.
Then set the second interface. Add info router/gatway, no-DHCP. Then you have one more set edit the /etc/hosts file.

Lets say your host name is server1 that name should be set in DHCP to that name. If you don't know the host name type:
Code:
hostname

for the 2nd interfase add this line to your host file. For example:
Code:
10.40.8.21 sever1-2

This should do it. If you need more help let me know.
 

6 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Dual boot XP and Centos 5.x using the NTLDR bootloader

How can one dual boot Windows XP sp2 and Centos 5.x using the NTLDR bootloader? I wanted to install CentOS onto a spare partition on a machine with Windows XP already installed, leaving the MBR as it was and using the NTLDR bootloader. (2 Replies)
Discussion started by: proactiveaditya
2 Replies

2. SCO

Need help for Dual Ethernet on SCO UNIX

Mobo contains Dual Gigabit Ethernet Controller. One Eth is on Bus 2, Device 0 Second on Bus 5, Device 2 The one that is on Bus 2 works, and it can be pinged, bu otherone on bus 5, doesn't work at all. Can anyone help me in setting both cards to work? P.S. Drivers are from Marvell Yukon... (2 Replies)
Discussion started by: PNemesis
2 Replies

3. UNIX for Dummies Questions & Answers

installing centos dual boot with ubuntu

I have installed ubuntu desktop on my hard drive and I gave it all the hard drive. Now I want to repatriate the hard disk and give half of it to anther ext4. How do I do that? Can I do it fron with in the ubuntu? Second when I install the centos, how can I make to recognize the ubuntu and... (0 Replies)
Discussion started by: programAngel
0 Replies

4. AIX

vio server ethernet to vio client ethernet(concepts confusing)

Hi In the vio server when I do # lsattr -El hdisk*, I get a PVID. The same PVID is also seen when I put the lspv command on the vio client partition. This way Im able to confirm the lun using the PVID. Similarly how does the vio client partition gets the virtual ethernet scsi client adapter... (1 Reply)
Discussion started by: newtoaixos
1 Replies

5. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

6. Hardware

Fedora 16 dual monitor - dual head - automatic monitor shutdown

Hi, I am experiencing troubles with dual monitors in fedora 16. During boot time both monitors are working, but when system starts one monitor automatically shut down. It happend out of the blue. Some time before when I updated system this happend but then I booted older kernel release and... (0 Replies)
Discussion started by: wakatana
0 Replies
DHCLIENT(8)						    BSD System Manager's Manual 					       DHCLIENT(8)

NAME
dhclient -- Dynamic Host Configuration Protocol (DHCP) client SYNOPSIS
dhclient [-bdqu] [-c file] [-l file] [-p file] interface DESCRIPTION
The dhclient utility provides a means for configuring network interfaces using DHCP, BOOTP, or if these protocols fail, by statically assign- ing an address. The name of the network interface that dhclient should attempt to configure must be specified on the command line. The options are as follows: -b Forces dhclient to immediately move to the background. -c file Specify an alternate location, file, for the configuration file. -d Forces dhclient to always run as a foreground process. By default, dhclient runs in the foreground until it has configured the interface, and then will revert to running in the background. -l file Specify an alternate location, file, for the leases file. -p file Specify an alternate location for the PID file. The default is /var/run/dhclient.interface.pid. -q Forces dhclient to be less verbose on startup. -u Forces dhclient to reject leases with unknown options in them. The default behaviour is to accept such lease offers. The DHCP protocol allows a host to contact a central server which maintains a list of IP addresses which may be assigned on one or more sub- nets. A DHCP client may request an address from this pool, and then use it on a temporary basis for communication on the network. The DHCP protocol also provides a mechanism whereby a client can learn important details about the network to which it is attached, such as the loca- tion of a default router, the location of a name server, and so on. On startup, dhclient reads /etc/dhclient.conf for configuration instructions. It then gets a list of all the network interfaces that are configured in the current system. It then attempts to configure each interface with DHCP. In order to keep track of leases across system reboots and server restarts, dhclient keeps a list of leases it has been assigned in the /var/db/dhclient.leases.IFNAME file. IFNAME represents the network interface of the DHCP client (e.g., em0), one for each interface. On startup, after reading the dhclient.conf(5) file, dhclient reads the leases file to refresh its memory about what leases it has been assigned. Old leases are kept around in case the DHCP server is unavailable when dhclient is first invoked (generally during the initial system boot process). In that event, old leases from the dhclient.leases.IFNAME file which have not yet expired are tested, and if they are determined to be valid, they are used until either they expire or the DHCP server becomes available. A mobile host which may sometimes need to access a network on which no DHCP server exists may be preloaded with a lease for a fixed address on that network. When all attempts to contact a DHCP server have failed, dhclient will try to validate the static lease, and if it succeeds, it will use that lease until it is restarted. A mobile host may also travel to some networks on which DHCP is not available but BOOTP is. In that case, it may be advantageous to arrange with the network administrator for an entry on the BOOTP database, so that the host can boot quickly on that network rather than cycling through the list of old leases. NOTES
You must have the Berkeley Packet Filter (BPF) configured in your kernel. The dhclient utility requires at least one /dev/bpf* device for each broadcast network interface that is attached to your system. See bpf(4) for more information. FILES
/etc/dhclient.conf DHCP client configuration file /var/db/dhclient.leases.IFNAME database of acquired leases SEE ALSO
dhclient.conf(5), dhclient.leases(5), dhclient-script(8) AUTHORS
The dhclient utility was written by Ted Lemon <mellon@fugue.com> and Elliot Poger <elliot@poger.com>. The current implementation was reworked by Henning Brauer <henning@openbsd.org>. BSD
October 13, 2011 BSD
All times are GMT -4. The time now is 02:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy