From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-x22c.google.com (mail-ob0-x22c.google.com [IPv6:2607:f8b0:4003:c01::22c]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 73F7421F246 for ; Sat, 14 Jun 2014 00:56:21 -0700 (PDT) Received: by mail-ob0-f172.google.com with SMTP id uy5so3840522obc.31 for ; Sat, 14 Jun 2014 00:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Co3dTTKqPojuCFoCDhpO1K0ne0CDTmdKYT1C6bapjf4=; b=GXyLxPwhS9LXJhFBzWnHEaorWvWLjma7ElXvfJaFnq4PWszB1k7v6kLMsyGXhoRic2 YsgUTIZImoIqueoRXW/8Ob7UrlGSGp0UIEUsTDJmdof6zoFxtk/4R1Za5YVKCR3VswA7 2oTAlMn+fou18JL15ZOIJyw+dYHNZREPy8BX2n7uB1yS1GRol1IRHVM7ZVp0h+/SrSyZ i0/T0gfZaQWuFEXv5j5In0D72vQ0yT6IJ6oi2MynZ6v3ES9cpq4Kju14NF2n7EJXgRXO 2A9oyAauMz6+VQvtxfHk1CH+1z6dFoXYGkdmDQKEfYBjH7BxjJ2/10xxdl0zZ8wAlRAm pXCw== X-Received: by 10.60.39.103 with SMTP id o7mr7565185oek.17.1402732580342; Sat, 14 Jun 2014 00:56:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.137.162 with HTTP; Sat, 14 Jun 2014 00:56:00 -0700 (PDT) From: Dane Medic Date: Sat, 14 Jun 2014 09:56:00 +0200 Message-ID: To: "cerowrt-devel@lists.bufferbloat.net" Content-Type: multipart/alternative; boundary=089e013cba442a903604fbc7212e Subject: [Cerowrt-devel] changing public IP to static fails X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2014 07:56:21 -0000 --089e013cba442a903604fbc7212e Content-Type: text/plain; charset=UTF-8 Hi, I've found out, that when I switch to static IP on interface ge00 and insert values: uci set network.ge00.proto=static uci set network.ge00.ipaddr=172.20.34.5 uci set network.ge00.netmask=255.255.255.224 *uci set network.ge00.gateway=172.20.34.1* uci set network.ge00.dns=8.8.8.8 it doesn't make default route, so I have to do it manually like: root@cerowrt:~# cat /etc/rc.local #!/bin/sh route add -net 0.0.0.0 netmask 0.0.0.0 dev ge00 gateway 172.20.34.1 exit 0 Regards, Dane --089e013cba442a903604fbc7212e Content-Type: text/html; charset=UTF-8
Hi,

I've found out, that when I switch to static IP on interface ge00 and insert values:

uci set network.ge00.proto=static
uci set network.ge00.ipaddr=172.20.34.5
uci set network.ge00.netmask=255.255.255.224
uci set network.ge00.gateway=172.20.34.1
uci set network.ge00.dns=8.8.8.8

it doesn't make default route, so I have to do it manually like:

root@cerowrt:~# cat /etc/rc.local
#!/bin/sh
route add -net 0.0.0.0 netmask 0.0.0.0 dev ge00 gateway 172.20.34.1
exit 0


Regards,

Dane
--089e013cba442a903604fbc7212e--