View previous topic :: View next topic |
Author |
Message |
really Guru
Joined: 27 Aug 2002 Posts: 430 Location: nowhere
|
Posted: Fri Jan 10, 2003 4:27 pm Post subject: dhcpcd... |
|
|
hi
i expreienced odd stuff lately, after updating dhcpcd, coz of the glsa.
i dont know what version i had before the update, but the new version opens port 68 (bootpc, and i dont even need bootpc)
and sometimes after not being on the comp for 10 or 15 minues it whould not be able to ping 10.0.0.1 whihc is my p dns and 10.0.0.2 which is s dns server, the 10. ip is from my isp (telia) and i know it should be able to ping them after i login on 10.0.0.6/sd/init
the odd thing, i cant even ping 10.0.0.6 which i _anytime_ should be able to ping, and i worked for as long as i had telia. 10.0.0.6 is pingable even if you dont logon, after sometime on tha net i cant ping it!
and therefor not verify if im logged on or not, which is totaly odd.
why is this happening?
it didnt happen before, i for an hour or so checked some kde-look theme and in the middle of the connection it stopped!
everything just went down, all netacces was blown off!
could not ping anything, ifconfig remaing unchanged, same ip as when i started the comp for the day, tells running all just as it should be.
but i cant ping the login server or the dns!
so i had to restart dhcpcd. it ddnt went well after dhcpcd -k
and dhcpcd eth0 i waited for 2mins.. nothing!
killed the attempt, and after a couple of more attepts i desided to turn the modem off, and the rebooted, suddenly i got a new ip and all worked juuust fine after loging on. after the rebood i could ping the logon server without loging on first.
now WHY is this happening? im totaly lost.
this should not happen.
i figured now that (i dont know how..) that the ip i am assigned somehow gets "not valid" from the login server, so when i try links 10.0.0.6/sd/init it replays then with "din ip är ej valid" a litle bit stupipd, it tells "your ip is not valid."
what can i do?
i think telias fucken dhcpserver somehow assignes my ip to someone else or gives me a fucken ip.
or?
what do you think? _________________ NoManNoProblem
Get lost before you get shot. |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Fri Jan 10, 2003 6:28 pm Post subject: |
|
|
could you please check the following things:
- do you have iptables runing and what is the output of:
what is the content of your:
what is the output of:
what do you get, when executing the following command: Code: | for i in /etc/dhcpc/dhcpcd-eth[0-9].info;do echo -en "==[$i]==\n$(cat $i)\n\n\n";done |
what is the output of: Code: | cat /etc/conf.d/net |
cheers
SteveB |
|
Back to top |
|
|
really Guru
Joined: 27 Aug 2002 Posts: 430 Location: nowhere
|
Posted: Fri Jan 10, 2003 7:39 pm Post subject: |
|
|
iptables -L -v
root@dahling anto # iptables -L -v
modprobe: Can't locate module ip_tables
iptables v1.2.7a: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
(i dont use iptables.... yet)
#cat /etc/resolv.conf
root@dahling anto # cat /etc/resolv.conf
nameserver 10.0.0.1
nameserver 10.0.0.2
which is correct.
root@dahling anto # route -veFnC
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
213.67.44.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
0.0.0.0 213.67.44.1 0.0.0.0 UG 40 0 0 eth0
Kernel IP routing cache
Source Destination Gateway Flags MSS Window irtt Iface
10.0.111.1 213.67.44.183 213.67.44.183 l 40 0 0 lo
80.68.100.10 213.67.44.183 213.67.44.183 l 40 0 0 lo
213.67.44.183 200.67.172.58 213.67.44.1 1500 0 0 eth0
213.67.44.183 200.180.130.194 213.67.44.1 1500 0 0 eth0
66.250.107.251 213.67.44.183 213.67.44.183 l 40 0 0 lo
200.180.130.194 213.67.44.183 213.67.44.183 l 40 0 0 lo
10.0.0.2 213.67.44.183 213.67.44.183 l 40 0 0 lo
213.67.44.183 212.239.165.249 213.67.44.1 1500 0 0 eth0
213.67.44.183 207.46.108.58 213.67.44.1 1500 0 86 eth0
207.46.108.58 213.67.44.183 213.67.44.183 l 40 0 0 lo
207.46.106.58 213.67.44.183 213.67.44.183 l 40 0 0 lo
213.67.44.183 207.46.106.58 213.67.44.1 1500 0 0 eth0
213.67.44.183 10.0.0.1 213.67.44.1 1500 0 26 eth0
213.67.44.183 10.0.0.1 213.67.44.1 1500 0 0 eth0
213.67.44.183 80.68.100.10 213.67.44.1 1500 0 81 eth0
213.67.44.183 217.210.96.241 213.67.44.1 1500 0 0 eth0
213.67.44.183 217.210.96.241 213.67.44.1 1500 0 12 eth0
10.0.0.1 213.67.44.183 213.67.44.183 l 40 0 0 lo
213.65.80.1 224.0.0.1 224.0.0.1 ml 40 0 0 lo
213.67.44.183 66.250.107.251 213.67.44.1 1500 0 47 eth0
213.67.44.183 10.0.0.2 213.67.44.1 1500 0 0 eth0
213.67.44.183 66.250.107.251 213.67.44.1 1500 0 0 eth0
213.67.44.183 10.0.0.2 213.67.44.1 1500 0 0 eth0
213.67.44.183 200.204.177.208 213.67.44.1 1500 0 0 eth0
217.210.96.241 213.67.44.183 213.67.44.183 l 40 0 0 lo
it works when im doing this..
root@dahling anto # for i in /etc/dhcpc/dhcpcd-eth[0-9].info;do echo -en "==[$i]==\n$(cat $i)\n\n\n";done
==[/etc/dhcpc/dhcpcd-eth0.info]==
IPADDR=213.67.44.183
NETMASK=255.255.255.0
NETWORK=213.67.44.0
BROADCAST=213.67.44.255
GATEWAY=213.67.44.1
DNS=10.0.0.1,10.0.0.2
DHCPSID=10.0.111.1
DHCPGIADDR=0.0.0.0
DHCPSIADDR=10.0.111.1
DHCPCHADDR=00:80:5F:26:89:44
DHCPSHADDR=00:10:67:00:D2:B7
DHCPSNAME=''
LEASETIME=1200
RENEWALTIME=600
REBINDTIME=1050
INTERFACE='eth0'
CLASSID='Linux 2.4.18 i686'
CLIENTID=00:80:5F:26:89:44
Oll Korrect here.
root@dahling anto # cat /etc/conf.d/net
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0="..."
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
# For setting the default gateway
#
#gateway="eth0/192.168.0.1"
ive checked all of those...
i wonder why the newest version of dhcpdc listens to prot 68
oh yes, ive noticed in my log that 10.0.111.1 sends something to that port by udp.
what is it that makes dhcpcd listen to poprt 68?
so i can disable it _________________ NoManNoProblem
Get lost before you get shot. |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Fri Jan 10, 2003 10:34 pm Post subject: |
|
|
anthos wrote: | i wonder why the newest version of dhcpdc listens to prot 68
oh yes, ive noticed in my log that 10.0.111.1 sends something to that port by udp.
what is it that makes dhcpcd listen to poprt 68?
so i can disable it |
if i use lsof (sys-apps/lsof) and query udp port 68 on my pc, then only bootpc is lissening to that port! Code: | # lsof -i udp:68
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
dhcpcd 900 root 4u IPv4 4204 UDP *:bootpc | udp port 68 is normaly used by bootstrap protocol client and dhcp client. and this is absolutly normal.
a closer look at /etc/services: Code: | grep -E "[^0-9]6[0-9]/" /etc/services
bootps 67/tcp # BOOTP server
bootps 67/udp
bootpc 68/tcp # BOOTP client
bootpc 68/udp
tftp 69/udp |
if you check your ip address with nmap, then you will see, that everything is okay: Code: | # nmap -sU -p 68 $(ifconfig|grep "inet addr"|awk 'BEGIN{FS=":"}{print $2}'|awk '{print $1}')
Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on gentoo.mydomain.local (192.168.0.11):
Port State Service
68/udp open dhcpclient
Interesting ports on gentoo-via.mydomain.local (192.168.0.12):
Port State Service
68/udp open dhcpclient
Interesting ports on localhost (127.0.0.1):
Port State Service
68/udp open dhcpclient
Nmap run completed -- 3 IP addresses (3 hosts up) scanned in 2 seconds |
my /etc/resolv.conf looks diffrend then yours (look at the domain and search entry) (btw: i masked my isp dns entries with x): Code: | domain mydomain.local
nameserver 192.168.0.254
nameserver xx.x.xx.xx
nameserver xx.x.xx.xxx
nameserver xx.x.xx.xx
search mydomain.local | but i have a local caching dns and a local dhcp with dynamic dns update. and only my cable and my adsl line get their ip addresses from a external dhcp server (wich works without any problem).
i can not imagine, why you are loosing your ip address. sounds very strange to me.
cheers
SteveB |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Fri Jan 10, 2003 10:39 pm Post subject: |
|
|
anthos wrote: | root@dahling anto # cat /etc/conf.d/net
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0="..."
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
# For setting the default gateway
#
#gateway="eth0/192.168.0.1" |
hmmm... i think you have one problem!
why do you have this one unmarked? Code: | iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" |
and then down below you say:
you do not need to enable iface_eth0 (just remark it with a #).
cheers
SteveB |
|
Back to top |
|
|
really Guru
Joined: 27 Aug 2002 Posts: 430 Location: nowhere
|
Posted: Fri Jan 10, 2003 10:50 pm Post subject: |
|
|
i dont think that the resolv.conf is the source of the problem, sence everything works right now and it looks that way.
even the net script.
it sets things up fine, it did so when i started to use gentoo. and it all worked.
but thanks for the remark on the long iface_eth0 line
stupid me. i guess it was a typo.
i think it sets the ip to that then dhcpcd changes it or something, but it worked.
ive tryd commecnting it out, but the problem remains,
i dont want anything to listen, and i had it that way berfore the upgrade of dhcpcd. :/
i know booptc is no harm and all... but i just down want it to be open. it doesnt need to, it hasent been open for mohts and all worked like a charm.
thanks for the help. _________________ NoManNoProblem
Get lost before you get shot. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|