On Wed, 2004-01-07 at 22:59, Mihai Dumitrescu wrote:
> la route -n
> Destination   gateway    Genmask   Flags    iface
> 82.208.177.0  0.0.0.0    255.255.255.0  U    eth0
> 192.168.0.0   0.0.0.0    255.255.255.0  U    eth1
> 169.254.0.0   0.0.0.0    255.255.0.0    U    eth1
> 127.0.0.0     0.0.0.0    255.0.0.0      U    lo
> 0.0.0.0     193.111.111.1 0.0.0.0      UG    eth0
> 

ia-o batraneste

opreste tot (service networking stop / firewall  / iptables)

dupa

ifconfig lo 127.0.0.1 netmask 255.0.0.0 up

ifconfig eth0 193.111.111.111 netmask 255.255.255.0 up

ifconfig eth1 192.168.0.1 netmask 255.255.255.0 up
193.111.111.1

route add -net default gw On Wed, 2004-01-07 at 22:59, Mihai Dumitrescu
wrote:
> la route -n
> Destination   gateway    Genmask   Flags    iface
> 82.208.177.0  0.0.0.0    255.255.255.0  U    eth0
> 192.168.0.0   0.0.0.0    255.255.255.0  U    eth1
> 169.254.0.0   0.0.0.0    255.255.0.0    U    eth1
> 127.0.0.0     0.0.0.0    255.0.0.0      U    lo
> 0.0.0.0     193.111.111.1 0.0.0.0      UG    eth0
> 

ia-o batraneste

opreste tot (service networking stop / firewall  / iptables)

dupa

ifconfig lo 127.0.0.1 netmask 255.0.0.0 up

ifconfig eth0 193.111.111.111 netmask 255.255.255.0 up

ifconfig eth1 192.168.0.1 netmask 255.255.255.0 up


route add -net default gw  193.111.111.1

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to
193.111.111.111

echo 1 > /proc/sys/net/ipv4/ip_forward

acum ar trebui sa iti mearga (sper ca nu am uitat nimic:).

vezi daca merge de pe local pe exten, ping in provider, in google.com

vezi daca merge de pe local (din retea) sa dai ping in 193.111.111.111

mai apoi daca merge in 193.111.111.1

daca merge asta e totul ok.

Daca nu merge fa o colectie mica

(lspci ; lsmod ; ifconfig -a; route -n ; arp -nae ; iptables -t nat -L
-nvx ; iptables -n -L ;  netstat -pulanet ) > batraneste.txt

revii la setarile actuale dupa care floodezi aici cu fisieru :)



--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui