Re: modem up and running but no ping

2003-10-07 Thread Paolo Pedaletti
ciao Martin Wegmann,

> ppp0  Link encap:Point-to-Point Protocol
>   inet addr:145.254.235.101  P-t-P:145.253.1.121  Mask:255.255.255.255

your address: 145.254.235.101
the address of the other side of the cable: 145.253.1.121
(your gateway to internet)

> [EMAIL PROTECTED]:/$ /sbin/route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse Iface
> 145.253.1.121   0.0.0.0 255.255.255.255 UH0  00 ppp0
> 10.0.0.00.0.0.0 255.255.255.0   U 0  00 eth0
> 0.0.0.0 10.0.0.10.0.0.0 UG0  00 eth0

here you can see that in the routing table the gateway is 10.0.0.1
(0.0.0.0 means everything that has not an explicit route)

so all your ping go to 10.0.0.1 instead to 145.253.1.121

solution:

cat script/route-ppp.sh 
#!/bin/sh -x

FROM=$1
TO=$2

# delete bad default route
route del default gw $FROM eth0
# add new default route
route add default gw $TO ppp0


call this script as:
route-ppp.sh 10.0.0.1 145.253.1.121

try it.

ciao

-- 
/* Paolo Pedaletti,



Re: Creating a Network Boot Disk

2002-05-10 Thread Paolo Pedaletti
ciao Justin News,

> network boot disk so I can mount the CD ROM of my windows box onto my 
> laptop. That way i can i can install linux as if i had a CD ROM on my 
> laptop. It seems that to do a network installation of debian using floppy 
> disks is more trouble than it's worth.

I have done it to install a cluster of PC without cdrom, via network.
You need a floppy with "kernel level autoconfiguration" active.
When kernel wake up, it ask on the net it's ip/netmask to a DHCP server.
Then it mount / via NFS
After that, you can run any script to install debian on your HD
(I have done a script that fdisk/mkfs/tar x debian.tgz automaticaly)

good luck!

-- 
Paolo Pedaletti, Como, ITALYa www.fastflow.it/~paolop
paolop...matapp.unimib.it 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Creating a Network Boot Disk

2002-05-10 Thread Paolo Pedaletti

ciao Justin News,

> network boot disk so I can mount the CD ROM of my windows box onto my 
> laptop. That way i can i can install linux as if i had a CD ROM on my 
> laptop. It seems that to do a network installation of debian using floppy 
> disks is more trouble than it's worth.

I have done it to install a cluster of PC without cdrom, via network.
You need a floppy with "kernel level autoconfiguration" active.
When kernel wake up, it ask on the net it's ip/netmask to a DHCP server.
Then it mount / via NFS
After that, you can run any script to install debian on your HD
(I have done a script that fdisk/mkfs/tar x debian.tgz automaticaly)

good luck!

-- 
Paolo Pedaletti, Como, ITALYa www.fastflow.it/~paolop
paolop...matapp.unimib.it 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: modem up and running but no ping

2003-10-07 Thread Paolo Pedaletti
ciao Martin Wegmann,

> ppp0  Link encap:Point-to-Point Protocol
>   inet addr:145.254.235.101  P-t-P:145.253.1.121  Mask:255.255.255.255

your address: 145.254.235.101
the address of the other side of the cable: 145.253.1.121
(your gateway to internet)

> [EMAIL PROTECTED]:/$ /sbin/route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse Iface
> 145.253.1.121   0.0.0.0 255.255.255.255 UH0  00 ppp0
> 10.0.0.00.0.0.0 255.255.255.0   U 0  00 eth0
> 0.0.0.0 10.0.0.10.0.0.0 UG0  00 eth0

here you can see that in the routing table the gateway is 10.0.0.1
(0.0.0.0 means everything that has not an explicit route)

so all your ping go to 10.0.0.1 instead to 145.253.1.121

solution:

cat script/route-ppp.sh 
#!/bin/sh -x

FROM=$1
TO=$2

# delete bad default route
route del default gw $FROM eth0
# add new default route
route add default gw $TO ppp0


call this script as:
route-ppp.sh 10.0.0.1 145.253.1.121

try it.

ciao

-- 
/* Paolo Pedaletti,


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]