LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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: 443

Rep: Reputation: 31
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 Images
File Type: png centos_network_ip.png (34.0 KB, 8 views)
 
Old 10-12-2009, 08:01 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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: 443

Original Poster
Rep: Reputation: 31
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 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
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
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,225

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 07:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration