LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-08-2003, 07:30 PM   #1
Baran
Member
 
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105

Rep: Reputation: 15
Packet socket and socket filtring


I think I am having a DHCP problem. I searched the internet for the whole day finally found the solution, but I didn't understand a word of this. Can anybody translate this to English and tell what to do...




dhclient! I didn't know about that one, and apparently that's the one RH8 uses. Anyway it turns out it requires "packet socket" and "socket filtering" to both be in the kernel.

I fixed that and now things work.

Thanks for the tips guys
 
Old 10-09-2003, 03:53 AM   #2
Baran
Member
 
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105

Original Poster
Rep: Reputation: 15
This is urgent, I need help,

please comment on this...
 
Old 10-09-2003, 05:36 AM   #3
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
redhat has a firewall enabled by default, but I doubt this is the problem. (still something that is good to know). DHCP uses ports 67 and 68.

Open a terminal, and type "su"; enter your root password.
Then type "ifconfig" to see an overview of your network interfaces.
Type "dhcpcd eth0" to request an IP-address for your first ethernet card with DHCP. (dhcpcd = dhcp client-deamon)
Verify your changes with "ifconfig", and type "exit" to leave the root-shell.

I though that Redhat has some nice graphical configuration tools, and a netconfig tool, which will help you setting up your network.

Last edited by yapp; 10-09-2003 at 05:38 AM.
 
Old 10-09-2003, 06:55 AM   #4
Baran
Member
 
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105

Original Poster
Rep: Reputation: 15
these may be useful maybe

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.0.1
NETMASK=255.255.255.0
USERCTL=no
PEERDNS=no
GATEWAY=192.168.0.1
TYPE=Ethernet
NETWORK=192.168.0.0
BROADCAST=192.168.0.255


DEVICE=eth1
ONBOOT=yes
BOOTPROTO=dhcp
USERCTL=yes
PEERDNS=yes
TYPE=Ethernet

and the result of the ifconfig after boot up is below

eth0 Link encap:Ethernet HWaddr 00:02:44:4B:E0:3D
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20902 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1267092 (1.2 Mb) TX bytes:3112 (3.0 Kb)
Interrupt:12 Base address:0xe400


eth1 Link encap:Ethernet HWaddr 00:02:44:53:7B:3A
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:8 dropped:0 overruns:0 carrier:8
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0xe800



lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:246 errors:0 dropped:0 overruns:0 frame:0
TX packets:246 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15552 (15.1 Kb) TX bytes:15552 (15.1 Kb)


well I will try

dhcpcd eth1

then...

what isn't it supposed to be run by default beucase I set that ethernet device to use dhcp
why am I asking this,
I have to try that anyway thank you very much
 
Old 10-09-2003, 08:16 AM   #5
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Quote:
Originally posted by Baran
well I will try

dhcpcd eth1

then...

what isn't it supposed to be run by default beucase I set that ethernet device to use dhcp
why am I asking this,
I have to try that anyway thank you very much
But I'm getting a little confused here.. what do you try to accomplish? is the linux system a NAT/gateway?
 
  


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
socket: Socket type not supported monindra Fedora - Installation 4 01-14-2008 08:25 AM
getpeername: Socket operation on non-socket KevStA Linux - General 5 04-26-2006 03:11 AM
cannot read data at server socket, though client socket sends it jacques83 Linux - Networking 0 11-15-2005 02:58 PM
Unable to connect to UNIX socket /tmp/.esd/socket error while using grip dr_zayus69 Linux - Software 4 08-23-2005 08:28 PM
connect: socket operation on non-socket bit7 Linux - Networking 0 02-18-2003 06:08 PM

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

All times are GMT -5. The time now is 04:28 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration