Re: Problem with Cable Moden & Router.



On Thu, 04 Jan 2007 07:23:44 GMT, Mark Healey wrote:

I just tried that. The problem persists.

Are you dual booting the PC or what is your setup?

If me, I would power down modem and pc.
cable pc directly to cable modem.
powerup modem, wait for leds to settle.
boot fedora
delete the eth0 network connection and create it with automatic/dhcp
that should get you connected.


When you come back with the results of my script
please append the output of your windows settings found with

ipconfig /all
from a Command Prompt (cmd.exe)


Then we need to see some of your config file contents.
I can not get my fedora 5 to boot so I can not test this script.
But maybe we will get enough to see what is going on.


-------- standard debug network problem include text follows: ------------

If having to use windows to access Usenet:
Format a diskette on the windows system.

Copy the following into xx.txt using notepad and save to disk.
Feel free to include the #**** lines.

If using linux for usenet access, as root, copy script text into xx
chmod +x xx
../xx
and include a.txt in your reply.

#******** start of xx.txt ****************
# dump_net.txt

_out_fn=a.txt

_uid=$(id --user)

if [ $_uid -ne 0 ] ; then
echo "you need to be root to run $0"
echo "CLick up a terminal and do a"
echo "su - root"
exit 1
fi

date > $_out_fn

cat /etc/*release >> $_out_fn

echo ======== /etc/version ========== >> $_out_fn
cat /etc/version >> $_out_fn
echo " "
echo msec security level is $SECURE_LEVEL >> $_out_fn

echo ======== chkconfig --list ========== >> $_out_fn
chkconfig --list | grep :on >> $_out_fn
chkconfig --list | tail -15 >> $_out_fn

_fn=/etc/nsswitch.conf
if [ -e $_fn ] ; then
echo ======== grep hosts: $_fn ========== >> $_out_fn
grep hosts: $_fn >> $_out_fn
fi

echo ====== /etc/resolv.conf ======== >> $_out_fn
cat /etc/resolv.conf >> $_out_fn

echo ======== hostname ========== >> $_out_fn
hostname >> $_out_fn

echo "======== grep eth /etc/mod*.conf ==========" >> $_out_fn
grep eth /etc/mod*.conf >> $_out_fn

_fn=/etc/dhclient-enter-hooks
if [ -e $_fn ] ; then
echo ======== $_fn ========== >> $_out_fn
cat $_fn >> $_out_fn
fi

_fn=/etc/host.conf
echo ======== $_fn ========== >> $_out_fn
cat $_fn >> $_out_fn

echo ================ ifconfig =============== >> $_out_fn
ifconfig -a >> $_out_fn

echo ============== route ================= >> $_out_fn
route -n >> $_out_fn

echo ======== /etc/sysconfig/network ========== >> $_out_fn
cat /etc/sysconfig/network >> $_out_fn

echo ============== /etc/hosts =============== >> $_out_fn
cat /etc/hosts >> $_out_fn

for nic in 0 1 2 ; do
_fn=/etc/sysconfig/network-scripts/ifcfg-eth$nic
if [ -e $_fn ] ; then

echo ======== mii-tool -v eth$nic ========== >> $_out_fn
mii-tool -v eth$nic >> $_out_fn

echo ======== ifcfg-eth$nic ========== >> $_out_fn
cat $_fn >> $_out_fn

_fn=/var/lib/dhcp/dhclient-eth${nic}.leases
if [ -e $_fn ] ; then
echo "======== tail -18 $_fn ==========" >> $_out_fn
tail -18 $_fn >> $_out_fn
fi

_fn=/etc/dhcpc/dhcpcd-eth${nic}.info
if [ -e $_fn ] ; then
echo "======== tail -18 $_fn ==========" >> $_out_fn
tail -18 $_fn >> $_out_fn
fi
fi
done


_fn=/etc/hosts.allow
if [ -e $_fn ] ; then
echo ======== $_fn ========== >> $_out_fn
cat $_fn >> $_out_fn
fi

_fn=/etc/hosts.deny
if [ -e $_fn ] ; then
echo ======== $_fn ========== >> $_out_fn
cat $_fn >> $_out_fn
fi


echo "Copy $_out_fn to diskette with the following command"
echo "mcopy -t $_out_fn a:"
echo " "
echo "and $_out_fn is ready for windows from diskette"

#*********** end of dump xx.txt *********



and then copy xx.txt to the diskette.

Move diskette to the linux box, click up a terminal
su -l root
(root's passwd)

mcopy -a a:\xx.txt xx
chmod +x xx
../xx

Back on the windows OS, you can cut/paste the a:\a.txt into your reply
under windows.
Do not attach it.

If mcopy does not exist, you will need to load the mtools package with
urpmi mtools
or whatever your package manager command is for your distribution.

If you are dual booting the box, you can copy xx.txt to linux from windows.
Note: The following assumes /dev/hda1 is where windows is installed on the
first partition on the C: drive

mkdir /doze
mount -t auto /dev/hda1 /doze
cp "/doze/whever /xx.txt" ./xx
recode ibmpc..lat xx
umount /doze

On windows you can read linux partitions if you installed
one of these tools.

http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm
http://www.fs-driver.org/index.html
.



Relevant Pages

  • Re: Seriously, now that I got Linux LiveCD running, what can I do with it? Newbie questions
    ... For example, there are some differences in the way distributions handle updates, configuration, root access, etc. - bbgruff is probably used to other distributions and was a little inaccurate about the way sudo is used in Ubuntu and Mint. ... It's probably easier for you to understand if I translate things roughly into windows terms. ... They are not entirely equivalent - MS didn't get things quite right when they copied user access from Linux for use in NT, or when they copied sudo as "user account control" in Vista. ... I don't normally configure a firewall on desktop or laptop Linux machines, and only do so on servers if they are internet-accessible. ...
    (comp.os.linux.setup)
  • Re: New To Linux
    ... A file can be user root and group root, but when yo uhave a look you will ... The concept behind Linux IS confusing for someone accustomed to windows, ... execute, delete). ... In windows you are always an Administrator unless you use explicitely the ...
    (alt.os.linux.suse)
  • Re: log in through root
    ... want to log in through root because i want to learn administrative property. ... Linux has a different mindset from Windows. ... I believe it is not the operating system that is secure or insecure. ...
    (Fedora)
  • Re: Cannot access Linux computer from outside LAN
    ... If you are having to use windows to access Usenet: ... You do not want some malware writting to linux. ... If using linux for usenet access, su - root, copy script text into xx ... echo "You need to be root to run $0" ...
    (comp.os.linux.networking)
  • Re: What is seen in Local Network ? (newbie)
    ... That's because Linux doesn't communicate with SMB ... Windows. ... YaST is pretty comprehensive. ... If you run YaST as a normal user, it should ask you for root password ...
    (alt.os.linux.suse)