Link to home
Start Free TrialLog in
Avatar of calic0
calic0

asked on

DHCP multiple interfaces

Hello,
I'm having trouble setting up DHCP on multiple interfaces.

I have had DHCP on my primary external interface for almost a year and decided to add an extra leg to my network. I configured the second interface, brought it up and set up DHCP the same as for my primary but it doesn't recieve an address.

If anyone has any suggestions I would be grateful.

Thanks
Avatar of dmaloy1
dmaloy1

I really need some more info regarding the current setup, but I will go ahead and outline the process...

1)  First identify that you want dhcp on the second interface by "touch dhcp.hmeX" where the "X" is the suffix to whatever your interface name is (ie. hme, qfe, eri, etc...)

2)  Second create "/etc/hostname.hmeX" and make sure that the file is empty.

3)  Make sure that your "/etc/inet/hosts" file only has a line in it defining the localhost loopback "127.0.0.1  localhost".

4)  Make sure the file "/etc/defaultrouter" is empty.

5)  Make sure the file "/etc/resolv.conf" is empty.

6)  Edit "/etc/nsswitch.conf" and add the entry for "DNS" to the line for hosts.  This will read:  hosts: files dns

7)  Reboot and enjoy

*If it doesn't come up at this point I would try and ping the server to make sure that you can access it in order to receive a dhcp addresss.

HTH.
dmaloy1
Avatar of calic0

ASKER

Actually I have no problem with setting up DHCP in general. I have had DHCP running on my primary interface for ages. My problem exists in the second interface. It just won't retrieve an IP even after all values in all needed files have been filled.

In general I assume that there shouldn't be any problems with a second interface recieving a DHCP address?
ASKER CERTIFIED SOLUTION
Avatar of dmaloy1
dmaloy1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello friend,

I would suggest looking into this post:
https://www.experts-exchange.com/questions/20527536/MAC-address.html

I was having similar problems with DHCP and I think it might be related to my MAC address. I'll let you know if anything comes of my situation. Good luck.

i think you did not plumb your interface..

type this

# ifconfig hmeX plumb

after that you need to run :

# ifconfig hmeX ip.add.re.ss broadcast + up

please replace hmeX with your interface..

and be sure that you have an entry with your hostname.hmeX
and hosts file.
oops..a litle mistake..if you want to get an ip address from dhcp server..

the command should be

# ifconfig hmeX auto-dhcp

cheers
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ  No refund

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer