|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
How do I setup a dedicated IP
Hello,
I am running red hat 7.3. I currently have my network interface configured to use DHCP to recieve a dynamic ip address. I have searched the internet and I can't seem to find any dedicated ip HOWTO's. Can someone please tell me how to set one up. Also, do I still need to have DHCP configured, or can I just take that off? Thanks |
|
#2
|
|||
|
|||
|
there is no how-to since it is too easy. you use either dhcp or a static ip (this is the correct name). a three-line howto:
for the command line freak: /etc/rc.d/dhcpcd stop (if you use dhcp-client-daemon) ifconfig eth0 192.168.1.1 netmask 255.255.255.0 for the gui freak: go to your control panel (can´t remember the name of redhat´s - was it "druid"?) disable dhcp setup your NIC to have a static IP and netmask. that´s it. and it´s nearly all that can be said about it ![]() the only howto-like material book about it is "tcp/ip basics" by anyone... or your redhat manual.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
||||
|
||||
|
another way
the above post is 100% correct, but another way if you want it set to the static ip permanently is to edit your /etc/rc.d/rc.inet1 file and change the line :
IPADDR="1.1.1.1" # REPLACE with YOUR IP address! NETMASK="255.255.255.128" # REPLACE with YOUR netmask! NETWORK="1.1.1.0" # REPLACE with YOUR network address! BROADCAST="1.1.1.255" # REPLACE with YOUR broadcast address, if you # have one. If not, leave blank and edit below. GATEWAY="1.1.1.1" # REPLACE with YOUR gateway address! # To use DHCP instead of a static IP, set this value to "yes": DHCP="no" # Use DHCP ("yes" or "no") that is the Slackware 8 cfg, the file names under redhat may vary a little but its the same commands. Then it will always boot up using that static IP. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > How do I setup a dedicated IP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|