commands to assign IP
Hai all,
I have 2 ethernet adapters in my Linux RHEL ES 4 box.. how can I allocate all IP settings (IP,Gateway,DNS ) using commands and activate that ethernet.. Thanks Yusuf |
I'll assume that the two adapters are eth0 and eth1. Replace words prefixed with $
With static IP: Code:
ifconfig eth$n $ip # set ip adress Code:
dhclient # it should check both interfaces and activate them automatically |
All times are GMT -5. The time now is 09:13 AM. |