[ninux-Firenze] [OpenWRT] Settare il default gateway

Leandro Noferini lnoferin at cybervalley.org
Tue Mar 12 09:23:49 CET 2013


Ciao a tutti,

sto un po' cercando di imparare openwrt sul tp-link che abbiamo flashato
l'altra sera ma non riesco a capire come fare a settare automaticamente
il default gateway.

Il router รจ collegato ad un modem ethernet con il dhcp, il quale
ovviamente non passa il gw.

in /etc/config/network ho queste righe:

config interface 'wan'                
        option ifname 'eth1'          
        option _orig_ifname 'eth1'    
        option _orig_bridge 'false'   
        option proto 'dhcp'           
        option peerdns  '1'           
                                      
config alias 'modem'                  
        option interface 'wan'        
        option proto 'static'         
        option netmask '255.255.255.0'
        option layer '1'              
        option ifname 'eth1'          
        option ipaddr '192.168.1.1'   

La rete casalinga sta su 192.168.0.* sull'eth0-4.

Cosa devo scrivere e dove?

-- 
Ciao
leandro
http://oivabkctz4ajdnwa.onion/blog/
gpg fingerprint: 54A4 2612 FD50 0313 7FED  6A91 DA5C 1552 E7A4 D6C2
\    /
 ~~~~   The only ASCII history possible
/    \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <http://ml.ninux.org/pipermail/firenze/attachments/20130312/0042a437/attachment-0001.sig>


More information about the Firenze mailing list