LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing centos 5.3 with static ip? (https://www.linuxquestions.org/questions/linux-newbie-8/installing-centos-5-3-with-static-ip-761479/)

windstory 10-12-2009 07:11 PM

installing centos 5.3 with static ip?
 
1 Attachment(s)
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?

reddazz 10-12-2009 08:01 PM

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.

windstory 10-12-2009 08:09 PM

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

r3sistance 10-12-2009 08:49 PM

Your ISP should have supplied you a primary and secondary DNS (that is ISP for the server).

chrism01 10-12-2009 08:55 PM

cat /etc/resolv.conf
(yep, no final 'e' in resolv ...)


All times are GMT -5. The time now is 02:40 AM.