LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2009, 07:11 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
installing centos 5.3 with static ip?


I want to install centos 5.3 with domain and static ip - my-server.com and 204.xxx.xx.xx.

At "network devices" as attached, do I iput domain and static ip?
Attached Thumbnails
Click image for larger version

Name:	centos_network_ip.png
Views:	23
Size:	34.0 KB
ID:	1716  
 
Old 10-12-2009, 08:01 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Click on where it says edit. Choose the option for static instead of dhcp and enter the static ip. You also need to enter your hostname (choose manually instead of dhcp) as well as your gateway and dns servers.
 
Old 10-12-2009, 08:09 PM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
reddazz/
Thanks for your reply.

And I have another question.

How to know primary dns and secondary dns?
This is "ifconfig and route".

Quote:
root@:/root>ifconfig
eth0 Link encap:Ethernet HWaddr 00:0F:20:98:0A:FC
inet addr:204.xxx.xx.28 Bcast:204.xxx.xx.255 Mask:255.255.255.0
inet6 addr: 2002:cbfa:3862:b:xxx:xxxx:xxxx:afc/64 Scope:Global
inet6 addr: 2002:cbfa:2974:b:xxx:xxxx:xxxx:afc/64 Scope:Global
inet6 addr: 2002:cbfa:383c:b:xxx:xxxx:xxxx:afc/64 Scope:Global
inet6 addr: 2002:7511:f8c6:b:xxx:xxxx:xxxx:afc/64 Scope:Global
inet6 addr: 2002:7511:f818:b:xxx:xxxx:xxxx:afc/64 Scope:Global
inet6 addr: fe80::xxx:xxxx:xxxx:afc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2975577 errors:0 dropped:0 overruns:0 frame:0
TX packets:1585611 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:251084951 (239.4 MiB) TX bytes:2139852966 (1.9 GiB)
Interrupt:177

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:45455 errors:0 dropped:0 overruns:0 frame:0
TX packets:45455 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27343823 (26.0 MiB) TX bytes:27343823 (26.0 MiB)

root@:/root>route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
204.xxx.xx.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 204.xxx.xx.1 0.0.0.0 UG 0 0 0 eth0
 
Old 10-12-2009, 08:49 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Your ISP should have supplied you a primary and secondary DNS (that is ISP for the server).
 
Old 10-12-2009, 08:55 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
cat /etc/resolv.conf
(yep, no final 'e' in resolv ...)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setup Static IP address for centOS and access to ssh careykwong Linux - Networking 14 09-23-2009 10:02 PM
permanent static routes on CentOS/Red Hat Enterprise Linux whistl Linux - Networking 4 03-24-2009 12:30 PM
static ip on CentOS (SIOCADDRT: File exists) zodehala Linux - Newbie 7 11-10-2008 10:45 AM
CentOS DHCP to Static mitchell2345 Linux - Networking 5 11-01-2008 10:38 AM
How to set up static IP/Broadband Router on CentOS to use Internet? linux_related Linux - Networking 23 09-19-2007 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration