[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: need sd card backup on r-pi-3b



Try putting your static route in interfaces, in the eth0 section with
an up, like

iface eth0 inet static
    address 192.168.71.3/24
    netmask 255.255.255.0
    up route add default gw 192.168.71.1

I think post-up might be too late, maybe there's a pre-up.

On 9/24/17, Gene Heskett <gheskett@shentel.net> wrote:
> On Sunday 24 September 2017 16:20:31 Mark Morgan Lloyd wrote:
>
>> On 24/09/17 19:45, Gene Heskett wrote:
>> >>> I wouldn't put the manual route command in rc.local, I'd put it in
>> >>> the network interface definition as in
>> >>>
>> >>> allow-hotplug eth0
>> >>> iface eth0 inet static
>> >>>     address 172.27.200.5/24
>> >>>     post-up route add default gw 172.27.200.1 dev eth0 metric 0
>> >>>     pre-down route del default gw 172.27.200.1 dev eth0
>> >>
>> >> Printed to carry out to it, rc.local didn't work at all.  I'll try
>> >> this
>> >
>> > next
>> >
>> >> Thanks.
>> >
>> > Didn't work, with my addresses, it gave me an empty route -n report.
>> > Back to doing it by hand after a reboot.
>> > Now trying to get X11 started. X server not in path. :(
>>
>> There's something badly wrong there. Run  ifconfig -a  to check that
>> your interfaces are named as expected.
> rock64@rock64:~$ sudo -i
> [sudo] password for rock64:
> root@rock64:~# ifconfig -a
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 192.168.71.2  netmask 255.255.255.0  broadcast
> 192.168.71.255
>         inet6 fe80::3c1b:98ff:fe17:e38c  prefixlen 64  scopeid 0x20<link>
>         ether 3e:1b:98:17:e3:8c  txqueuelen 1000  (Ethernet)
>         RX packets 46905  bytes 66972164 (63.8 MiB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 22393  bytes 1567772 (1.4 MiB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>         device interrupt 39
>
> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
>         inet 127.0.0.1  netmask 255.0.0.0
>         inet6 ::1  prefixlen 128  scopeid 0x10<host>
>         loop  txqueuelen 1  (Local Loopback)
>         RX packets 3  bytes 232 (232.0 B)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 3  bytes 232 (232.0 B)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> Thanks Mark.
>
> Cheers, Gene Heskett
> --
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> Genes Web page <http://geneslinuxbox.net:6309/gene>
>
>


-- 
-------------
No, I won't  call it "climate change", do you have a "reality problem"? - AB1JX
Impeach  Impeach  Impeach  Impeach  Impeach  Impeach  Impeach  Impeach


Reply to: