- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Static IP
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 12:47 AM
тАО11-05-2003 12:47 AM
Static IP
I'm building a server from scratch. I just installed RH 9.0 and selected DHCP during install. I've now got a Static IP address. What do I have to do to configure the static IP address? The more specific the better on the answsers (i'm new) Thanks to all!
Kyle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:07 AM
тАО11-05-2003 01:07 AM
Re: Static IP
If you want to do it a sensible way (actually don't bother on red hat)
"ifconfig eth0 your.static.ip.address netmask your.netmask.address." to just set it up without a re-boot to make sure it's ok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:09 AM
тАО11-05-2003 01:09 AM
Re: Static IP
before you do your setup be sure of what you have got from your network admin ! a static or a dynamic (usualy the network addresss of the dhcp server
for both set up you will have to use following log in as root
# redhat-config-network
this invokes a setup tool for your network
once in there chose either a static address this will have been given to you by your network admin (ex: 10.3.4.11 ).
Or chose use dhcp
But if I understand you right you got a static address ?
tell use what you have will pick it up from there
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:11 AM
тАО11-05-2003 01:11 AM
Re: Static IP
select hat / system tools / network configuration, select your device, double click on it, you'll be able to select your static IP and netmask.
From command line, go to
/etc/sysconfig/networking/devices
edit ifcfg-eth0 (if your NIC is eth0, the eth1 and so on if you have several NICs), and put values according to your network, like :
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.0.126
NETMASK=255.255.255.0
USERCTL=yes
PEERDNS=no
TYPE=Ethernet
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
GATEWAY=192.168.0.253
save, and :
service network restart.
You are done.
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:14 AM
тАО11-05-2003 01:14 AM
Re: Static IP
DEVICE=eth0 is your NIC number, from 0 to ...
BOOTPROTO=none, if static, or BOOTP or DHCP if dynamic
ONBOOT=yes : is the device launched at boot time or later
IPADDR=192.168.0.126 your IP
NETMASK=255.255.255.0 yor mask
USERCTL=yes Can a user (des)activate it, or just root
PEERDNS=no do you address a peer dns
TYPE=Ethernet is it ethernet (or token and so on)
NETWORK=192.168.0.0 network number
BROADCAST=192.168.0.255 as it says
GATEWAY=192.168.0.253 same
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:21 AM
тАО11-05-2003 01:21 AM
Re: Static IP
NETWORKING=yes
HOSTNAME=
in ifcfg-eth0 is
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
NETMASK=
GATEWAY=
IPADDR=
HOSTNAME=
I don't know whay I need two HOSTNAME entry, but I think it is for backward compatibility in regards to redhat version and it never got clean off. I suppose you can just have one hostname entry in the one of the config file only, but I have not got a chance to test it out.
After the entry is done, you do hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:23 AM
тАО11-05-2003 01:23 AM
Re: Static IP
Broadcast, Gateway and Network addresses examples or should i have those in there? Thanks for the help!
Huc-
Yes, my system admin did give me a static IP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:28 AM
тАО11-05-2003 01:28 AM
Re: Static IP
Broadcast, gateway and netmask are given by your admin, my values here are examples.
For the rest, you can use these values. If you post your IP address, I'll give you your probable values... But safest is to ask your admin.
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:34 AM
тАО11-05-2003 01:34 AM
Re: Static IP
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2003 01:39 AM
тАО11-05-2003 01:39 AM
Re: Static IP
Particularly gateway would be a bet, network would be deduced from your IP/mask.
J