
| This forum is proudly powered by Scientific Linux 6 | SL website Download SL Help Search Members |
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| yellowhat |
Posted: Nov 23 2011, 08:33 AM
|
|||||
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 76 Member No.: 707 Joined: 18-August 11 |
How to enable eth1?
My box is scientific linux 6.1 x64. I tried to start dhcpd, but failed.
So I opened "system-config-network", but there is not "eth1". ![]() The ifconfig is this.
Thanks in advance. |
|||||
| Code_Warrior |
Posted: Nov 24 2011, 12:11 PM
|
|
|
SLF Junior ![]() ![]() Group: Members Posts: 30 Member No.: 431 Joined: 12-July 11 |
So just choose "<new device>" in system-config-network and add eth1.
After that you can look in /etc/sysconfig/network-scripts/ifcfg-eth1 and check BOOTPROTO="dhcp" Next sudo ifconfig eth1 up |
|
| yellowhat |
Posted: Nov 25 2011, 01:08 AM
|
|||
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 76 Member No.: 707 Joined: 18-August 11 |
I can manage to change eth1 to eth0, and the "/etc/sysconfig/network-scripts/ifcfg-eth0" is here.
And I opened system settings - network settings, but there is another problem: network settings "your system is not supported" at system settings. |
|||
| Code_Warrior |
Posted: Nov 25 2011, 06:48 AM
|
|
|
SLF Junior ![]() ![]() Group: Members Posts: 30 Member No.: 431 Joined: 12-July 11 |
What version of KDE do you use? This version is stable?
Can you choose RedHat or CentOs in that list of supported systems? |
|
| helikaon |
Posted: Nov 25 2011, 09:22 AM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 514 Member No.: 4 Joined: 8-April 11 |
Hi yellow
from your post, i think we should start to clear network settings at first and after we have our network setup OK, then we can start to run network services like e.g. dhcpd. 1. i will presume, your box is server, supplying services on some kind of LAN. Services, like you mention dhcp, nfs, ftp, ssh etc etc. If my presumption is right, then: 1. do (if you haven't done already) mv /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-eth0 2. stop NetworkManager and let your network be managed only by 'network': service NetworkManager stop chkconfig NetworkManager off 3. start 'network' service service network start chkconfig network on note: these last 2 steps do on servers, if you have laptop, it's good to have NM running to run 'ifup / ifdown' network scripts while accessig e.g. wifi networks in netcafes etc ... 4. change /etc/sysconfig/network-scripts/ifcfg-eth0 e.g. like this:
reason for this is, that if you want to run DHCP service on the same box, you can't point your own network card to get IP from this service why: because your network scripts initialize you network card first (of course) and while this process is underway, it looks for IP at your DHCP, but this service starts *after* your network card, so at the boot your netw, card can't get ip, getting it late and also while the DHCP service start it needs to have your network properly configured ... so you see the problem (cycle) 5. check you dhcpd config if it is setup properly 6. codewarrior asked about kde version - this could have impact while you try to edit over GUI tools, but if you edit using 'vi' or 'vim' you dont have to care ... hope, this helps cheers, -------------------- |
|||
| yellowhat |
Posted: Nov 25 2011, 02:04 PM
|
|||||
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 76 Member No.: 707 Joined: 18-August 11 |
Code_Warrior/
I don't know the version of KDE, but I installed latest version.
About "choose RedHat or CentOs in that list of supported systems", you can see this photo. ![]() ![]() helikaon/ At "3. start 'network' service", the result of this tage has "failed" message.
|
|||||
| yellowhat |
Posted: Nov 25 2011, 02:56 PM
|
|||||||
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 76 Member No.: 707 Joined: 18-August 11 |
Ok I solved "service network start" problem by killing process with this command.
And I edited "/etc/sysconfig/network-scripts/ifcfg-eth0".
But, still dhcpd cloud not start.
|
|||||||
| helikaon |
Posted: Nov 25 2011, 03:27 PM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 514 Member No.: 4 Joined: 8-April 11 |
Hi yellow,
as i said, step by step As we now have eth0 firmly declared, now we can continue with dhcp configuration. Paste here your dhcpd config. You can have a look at mine. I run dhcpd service on my home LAN server:
as you can see i have very similar scenario to yours, only my subnet IP different. My DNS server is server of my ISP (i dont run any DNS server at home).... Probably you miss in your config exactly what your box complains about -> subnet specification ... cheers, -------------------- |
|||
| yellowhat |
Posted: Nov 25 2011, 03:53 PM
|
|
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 76 Member No.: 707 Joined: 18-August 11 |
This is my dhcpd.conf.
[CODE]authoritative; include "/etc/rndc.key"; # Server configuration: server-identifier server; ddns-domainname "test.dyndns.org."; ddns-rev-domainname "in-addr.arpa."; ddns-update-style interim; ddns-updates on; ignore client-updates; # This is the communication zone zone hanpedro.dyndns.org. { primary 127.0.0.1; key rndckey; } default-lease-time 21600; # 6 hours max-lease-time 43200; # 12 hours # Client configuration: option domain-name "test.dyndns.org."; option ip-forwarding off; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.100 192.168.0.200; option routers 192.168.0.0; # default gateway option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; option domain-name-servers 192.168.0.0; zone 0.168.192.in-addr.arpa. { primary 192.168.0.4; key rndckey; } zone localdomain. { primary 192.168.0.4; key rndckey; } } [/CODE} |
|
| helikaon |
Posted: Nov 26 2011, 06:45 AM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 514 Member No.: 4 Joined: 8-April 11 |
hi,
first thing to fix that i can see at 'first look'
-default gateway cant be with '0' at the end - this means whole subnet, you need spec. exact IP of your gateway -same thing with dns - what is your dns server IP? you need to specify it too .. cheers, -------------------- |
|||
| yellowhat |
Posted: Nov 26 2011, 01:05 PM
|
|
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 76 Member No.: 707 Joined: 18-August 11 |
I have used this files many years only changingprimary ip without any problem.
Anyway, I'll test. |
|
| helikaon |
Posted: Nov 28 2011, 09:11 AM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 514 Member No.: 4 Joined: 8-April 11 |
Oki, let as know how you fare with this cheers, -------------------- |
|||
| yellowhat |
Posted: Jan 9 2012, 11:38 AM
|
|
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 76 Member No.: 707 Joined: 18-August 11 |
helikaon/
Sorry for late answering for your kind comment. This is the link of the guide which I learned how to set up dynamic dns at linux. guide I used this guide several years, but whenever I reinstall linux, I makes mistakes and gets difficulties. So I backup these files and restore them, but most of times I got errors in setting up. At this time, I could repair this error by changing internet sharing modem. Thanks a lot for your kind attention. |
|
| helikaon |
Posted: Jan 11 2012, 11:02 AM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 514 Member No.: 4 Joined: 8-April 11 |
Hi,
good you got it up & running and thanks for sharing cheers, -------------------- |
|
![]() |
![]() ![]() ![]() |