Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Earlier was on redhat 9 and i got the wifi working with the help of the linuxant drivers.. and thing we lookign smooth and then it had to happen i installed mandrake.. the linuxant drivers got installed... but what next.... There is no place on X where it can be configured like in redhat..
What do i need to do set this up on mandrake 10 (
i used iwconfig and put everything required and used dhclient to get the my ip but then ny kde and gnome hangs up on the second icon while starting something to do with services.
Now I have changed the name of my machine in /etc/hosts too
does that matter ??
help really appreciated. I would love to get this right so that i can safely remove windows.. cos even the cdwriter wrks..
i don't need anythign else .. there is sound.. but thats later
// Mod note: Your post was edited to bring it into compliance with the forum rules. Please refrain from profanity in the future, especially in topic titles!
I usually install a distro, only to fdisk and format the drive to install another, so I know how you feel bro.
I have mandrake installed on one of my comps and the only things that work are the mouse, keyboard, monitor, and harddrive. other than that Ive been asking around for several months now to no avail.
When X fails you there is always the console......
I'm not real sure where Mandrake stores its start-up scripts, but it is probably something like /etc/rc.d or /etc/init.d. Usually there is a script that is meant to be altered by the user (like rc.local) that will run every time you boot. Put your linuxant and iwconfig commands in that file. Make sure the file is executable and you should be good to go.
the setting is not the trouble .. since i can get the net working and as u put it its rc.local where i can set everything up.. but just that once the net i working anf i try to log into kde the damn thing hangs on me on the starting system services thingy...
OK, I'm not sure I'm getting where the trouble is. You say that you can set up the card, but that KDE hangs? What leads you to believe that it is the card that causes this? I think we are going to need some real details here, including any error messages you see.
Now in retrospect I can see that I have confused everyone with my post. My Apologies . Ok let me make amends now.
I installed my driverloader using the the generic driver and it pretty much compiled and installed the driver under eth0. Ok then i proceed to use iwconfig set the key and the essid and voila iwconfig eth1 shows mac for the router. Ok then I ran dhclient and it got me an ip too. This entire thing i did on the console aka ctrl-alt-f1. And now when i swith to the kde/gnome login screen and try to login in . I get stuck in the second icon that is starting system services. And not only this but for all network relatedoperations. Save target as.. opening kcontact etn .. it seems to take ages close to 2 or more minutes. Now I am begnning to think that this is because of this because if i do not start the net after typing in dhclient then the things start up fine and also under eth0 things seems fine.
There are no error messages, so none to attach. I am not usre what is wrong cos the moment i key in the url and pres enter the site appears but when i do save target as .. kaboom!!
Thank you for the explanation, now I think I understand. I'm not sure I can help, but we can try. One of the places to look for error messages would be your system log. After KDE starts up (and has trouble with eth1) open up /var/log/syslog and /var/log/messages and see if there are any errors related to eth0 or eth1.
By the way, I'm assuming that eth0 is a wired ethernet card and is a different card from your wireless eth1. If that is a mistake, please let me know.
Mar 22 23:13:45 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 12
Mar 22 23:13:57 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 18
Mar 22 23:14:15 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 13
Mar 22 23:14:28 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 11
Mar 22 23:14:39 localhost dhclient: No DHCPOFFERS received.
Mar 22 23:14:39 localhost dhclient: No working leases in persistent database - sleeping.
Mar 22 23:15:22 localhost dhclient: DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 7
Mar 22 23:15:22 localhost dhclient: send_packet: Network is down
Mar 22 23:15:29 localhost dhclient: DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 9
Mar 22 23:15:29 localhost dhclient: send_packet: Network is down
Mar 22 23:15:38 localhost dhclient: DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 15
Mar 22 23:15:38 localhost dhclient: send_packet: Network is down
Mar 22 23:15:53 localhost dhclient: DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 13
Mar 22 23:15:53 localhost dhclient: send_packet: Network is down
Mar 22 23:15:54 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Mar 22 23:15:57 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Mar 22 23:16:00 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Mar 22 23:16:06 localhost dhclient: DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 17
Mar 22 23:16:06 localhost dhclient: send_packet: Network is down
Mar 22 23:16:07 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Mar 22 23:16:15 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Mar 22 23:16:23 localhost dhclient: No DHCPOFFERS received.
Mar 22 23:16:23 localhost dhclient: No working leases in persistent database - sleeping.
Mar 22 23:16:23 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Mar 22 23:16:35 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
Mar 22 23:16:35 localhost kernel: mtrr: 0xf0000000,0x4000000 overlaps existing 0xf0000000,0x1000000
Mar 22 23:16:35 localhost devfsd[136]: error calling: "unlink" in "GLOBAL"
Mar 22 23:16:36 localhost last message repeated 27 times
Mar 22 23:16:36 localhost kernel: atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
Mar 22 23:16:36 localhost kernel: atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
Mar 22 23:16:36 localhost kernel: atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
Mar 22 23:16:36 localhost kernel: atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
Mar 22 23:16:37 localhost mdkkdm[6057]: Can't execute "/etc/X11/xdm/Xsetup": No such file or directory
Mar 22 23:16:55 localhost dhclient: No DHCPOFFERS received.
Mar 22 23:16:55 localhost dhclient: No working leases in persistent database - sleeping.
Mar 22 23:17:34 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 3
Mar 22 23:17:37 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 5
Mar 22 23:17:42 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 13
Mar 22 23:17:55 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 18
Mar 22 23:18:13 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 15
Mar 22 23:18:28 localhost dhclient: DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 7
Mar 22 23:18:35 localhost dhclient: No DHCPOFFERS received.
Mar 22 23:18:35 localhost dhclient: No working leases in persistent database - sleeping.
Mar 22 23:23:08 localhost dhclient: DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 6
Mar 22 23:23:08 localhost dhclient: send_packet: Network is down
Mar 22 23:23:14 localhost dhclient: DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 13
Mar 22 23:23:14 localhost dhclient: send_packet: Network is down
Mar 22 23:23:27 localhost dhclient: DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 20
Mar 22 23:23:27 localhost dhclient: send_packet: Network is down
Mar 22 23:23:38 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
I guess its looking for localhost and not able to resolve the name. and after waiting along time then switched to eth1.
Now i guess you should be knowing what else needs to be done
It looks to me like your dhcpclient is goofed up. I'm not sure how Mandrake handles dhcp, but if there is a place it has configuration options, make sure it is only using eth0 and eth1 (if that is your wireless card). Your logs show dhcpclient is asking for and IP address on all sorts of interfaces where it isn't appropriate (lo, sit0). I'm guessing (and this is a guess) that your gateway may be part of the problem. Could you post the output of route -n? Pay particular attention to the Gateway entry. If that isn't the IP address of the DHCP server, then that may be it.
Hmm. Well, if that is the correct router IP address, then everything there is fine. Which of course brings us back to the DHCP problem. Since this is Mandrake, I'm a little lost as to where the various interfaces are set up. In Slackware, the /etc/rc.d/rc.inet1 file is where all the ethernet cards are configured. Does Mandrake have such a file? You also might check in /etc/init.d. Basically you are looking for the script that sets up eth0 and hopefully that will give us some clue as to why DHCP is looking to lo and sit0 for IP addresses. If you haven't already, this would be a good time to learn how to use grep to search file contents.
there is a file caled network in /etc/init.d that seems to do this.
here is the file l:
#! /bin/bash
#
# network Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
# start at boot time.
# probe: false
### BEGIN INIT INFO
# Provides: $network
### END INIT INFO
# Source function library.
. /etc/init.d/functions
if [ ! -f /etc/sysconfig/network ]; then
echo "NETWORKING=no" > /etc/sysconfig/network
exit 0
fi
. /etc/sysconfig/network
if [ -f /etc/sysconfig/pcmcia ]; then
. /etc/sysconfig/pcmcia
fi
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1
# Even if IPX is configured, without the utilities we can't do much
[ ! -x /sbin/ipx_internal_net -o ! -x /sbin/ipx_configure ] && IPX=
# Even if VLAN is configured, without the utility we can't do much
[ ! -x /sbin/vconfig ] && VLAN=
# If IPv6 is explicitly configured, make sure it's available.
if [ "$NETWORKING_IPV6" = "yes" ]; then
alias=`modprobe -c | awk '/^alias net-pf-10 / { print $3 }'`
if [ "$alias" != "ipv6" -a ! -f /proc/net/if_inet6 ]; then
case "$(modprobe -V 2>/dev/null)" in
modprobe* )
echo "alias net-pf-10 ipv6" >> /etc/modules.conf
;;
module-init-tools* )
echo "alias net-pf-10 ipv6" >> /etc/modprobe.conf
;;
esac
fi
fi
CWD=`pwd`
cd /etc/sysconfig/network-scripts
. network-functions
# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=`ls ifcfg* | LANGUAGE=C LC_ALL=C egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \
LANGUAGE=C LC_ALL=C egrep -v '(~|\.bak)$' | \
LANGUAGE=C LC_ALL=C egrep 'ifcfg-[A-Za-z0-9\.]+$' | \
sed 's/^ifcfg-//g'`
boot=boot
# See how we were called.
case "$1" in
start)
# IPv6 hook (pre IPv4 start)
if [ "$NETWORKING_IPV6" = "yes" ]; then
if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
/etc/sysconfig/network-scripts/init.ipv6-global start pre
fi
fi
if [ -r /etc/ethers -a -x /sbin/arp ]; then
action "Storing ARP mapping" /sbin/arp -f /etc/ethers
fi
# bring up loopback interface
action "Bringing up loopback interface: " ./ifup ifcfg-lo
case "$IPX" in
yes|true)
/sbin/ipx_configure --auto_primary=$IPXAUTOPRIMARY \
--auto_interface=$IPXAUTOFRAME
if [ "$IPXINTERNALNETNUM" != "0" ]; then
/sbin/ipx_internal_net add $IPXINTERNALNETNUM $IPXINTERNALNODENUM
fi
;;
esac
# depreciated but we still use it.
if [ -f /proc/sys/net/ipv4/ip_forward ] && [[ "$FORWARD_IPV4" = "yes" || "$FORWARD_IPV4" = "true" ]];
then
action "Enabling IPv4 packet forwarding" sysctl -n -w net.ipv4.ip_forward=1
fi
case "$VLAN" in
yes|true)
if [ -d /proc/net/vlan ] || modprobe 8021q >/dev/null 2>&1 ; then
action "Setting 802.1Q VLAN parameters: " /sbin/vconfig set_name_type DEV_PLUS_VID_NO_PAD
else
gprintf "No 802.1Q VLAN support available in kernel.\n"
fi
;;
esac
# bring up all other interfaces configured to come up at boot time
for i in $interfaces; do
eval $(LANGUAGE=C LC_ALL=C fgrep "DEVICE=" ifcfg-$i)
if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi
if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
cipeinterfaces="$cipeinterfaces $DEVICE"
continue
fi
if LANGUAGE=C LC_ALL=C egrep -q -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i; then
# this loads the module, to preserve ordering
is_available $i
continue
fi
# If we're in confirmation mode, get user confirmation
[ -n "$CONFIRM" ] &&
{
confirm $i
case $? in
0)
:
;;
2)
CONFIRM=
;;
*)
continue
;;
esac
}
if [ "${DEVICE:0:3}" != "eth" -o ${DEVICE/:/} != ${DEVICE} -o ! -x /sbin/ifplugd ] || grep -q '^MII_NOT_SUPPORTED=yes' ifcfg-$i; then
action "Bringing up interface %s: " $i ./ifup $DEVICE $boot
else
IFPLUGD_ARGS="${IFPLUGD_ARGS=-w -b}"
action "Bringing up interface %s: " $i /sbin/ifplugd $IFPLUGD_ARGS -i $DEVICE
fi
done
# Bring up CIPE VPN interfaces
for i in $cipeinterfaces ; do
if ! LANGUAGE=C LC_ALL=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
# If we're in confirmation mode, get user confirmation
[ -n "$CONFIRM" ] &&
{
confirm $i
case $? in
0)
:
;;
2)
CONFIRM=
;;
*)
continue
;;
esac
}
action "Bringing up interface %s: " $i ./ifup $i $boot
fi
done
# Add non interface-specific static-routes.
if [ -f /etc/sysconfig/static-routes ]; then
grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
/sbin/route add -$args
done
fi
# IPv6 hook (post IPv4 start)
if [ "$NETWORKING_IPV6" = "yes" ]; then
if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
/etc/sysconfig/network-scripts/init.ipv6-global start post
fi
fi
touch /var/lock/subsys/network
;;
stop)
# If this is a final shutdown/halt, check for network FS,
# and unmount them even if the user didn't turn on netfs
# IPv6 hook (pre IPv4 stop)
if [ "$NETWORKING_IPV6" = "yes" ]; then
if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
/etc/sysconfig/network-scripts/init.ipv6-global stop pre
fi
fi
# shut down all interfaces (other than loopback)
for i in $interfaces ; do
eval $(fgrep "DEVICE=" ifcfg-$i)
if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi
if ! check_device_down $i; then
action "Shutting down interface %s: " $i ./ifdown $i $boot
fi
done
# kill all the ifplugd instances
/usr/bin/killall ifplugd > /dev/null 2>&1
case "$IPX" in
yes|true)
if [ "$IPXINTERNALNETNUM" != "0" ]; then
/sbin/ipx_internal_net del
fi
;;
esac
action "Shutting down loopback interface: " ./ifdown ifcfg-lo
if [ -d /proc/sys/net/ipv4 ]; then
if [ -f /proc/sys/net/ipv4/ip_forward ]; then
if [ `cat /proc/sys/net/ipv4/ip_forward` != 0 ]; then
action "Disabling IPv4 packet forwarding: " sysctl -n -w net.ipv4.ip_forward=0
fi
fi
if [ -f /proc/sys/net/ipv4/ip_always_defrag ]; then
if [ `cat /proc/sys/net/ipv4/ip_always_defrag` != 0 ]; then
action "Disabling IPv4 automatic defragmentation: " sysctl -n -w net.ipv4.ip_always_defrag=0
fi
fi
fi
if [ -f /proc/sys/net/ipv4/tcp_syncookies ];then
if [ `cat /proc/sys/net/ipv4/tcp_syncookies` != 0 ]; then
sysctl -n -w net.ipv4.tcp_syncookies=0
fi
fi
# IPv6 hook (post IPv4 stop)
if [ "$NETWORKING_IPV6" = "yes" ]; then
if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
/etc/sysconfig/network-scripts/init.ipv6-global stop post
fi
fi
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.