You mean this example? Do I need to replace 44.128.0.1 with my allocation? -Kun
# # IPIP tunnel & ampr-ripd startup example via /etc/network/interfaces # # # - Tunnel interface is named 'ampr0' # - Local WAN IP is 192.168.0.2 on eth1 # - AMPR routing table used is table 'default' # - gateway IP is 44.128.0.1 # auto ampr0 iface ampr0 inet static address 44.128.0.1 netmask 255.255.255.255 metric 100 pre-up ip tun add ampr0 mode ipip ttl 64 local 149.28.12.190 dev ens3 up ip route add default via 169.228.34.84 dev ampr0 onlink table default up ip rule add from 44.128.0.1 table default up ampr-ripd -s -t default -i ampr0 -m 90 -a 44.128.0.0/24 up ping -c 1 -I ampr0 44.0.0.1 > /dev/null 2>&1 pre-down ip route del default via 169.228.34.84 dev ampr0 onlink table default post-down killall ampr-ripd post-down ip rule del from 44.128.0.1 table default post-down ip tunnel del ampr0 post-down rmmod ipip
From: Scott Nicholas scott.nicholas@scottn.us Sent: Monday, September 16, 2019 8:09 PM To: KUN LIN dnwk@linkun.info Cc: AMPRNet working group 44net@mailman.ampr.org Subject: Re: [44net] need help configure gateway on ubuntu
Oh I see. I guess that is the real problem. I have not followed this guide. See the section about rc.local. you will need to run the "ip tunnel" command to create that interface. And pretty much everything in between.
On Mon, Sep 16, 2019, 8:09 PM KUN LIN <dnwk@linkun.infomailto:dnwk@linkun.info> wrote:
The config you send me works. Now I need to figure out how to actually run ampr-ripd
When I try to get the password
./ampr-ripd -d -v -I ampr0
Tunnel socket: Setting SO_BINDTODEVICE: No such device Kun ________________________________ From: Scott Nicholas <scott.nicholas@scottn.usmailto:scott.nicholas@scottn.us> Sent: Monday, September 16, 2019 16:49 To: KUN LIN <dnwk@linkun.infomailto:dnwk@linkun.info> Cc: AMPRNet working group <44net@mailman.ampr.orgmailto:44net@mailman.ampr.org> Subject: Re: [44net] need help configure gateway on ubuntu
Could you describe your interfaces then? If you have just ens3 for ham and lan subnets then the easiest way to add an IP using the Debian/Ubuntu interfaces file would be:
auto ens3:1 iface ens3:1 inet static address {my allocated IP} netmask 255.255.255.252
On Mon, Sep 16, 2019, 7:42 PM KUN LIN <dnwk@linkun.infomailto:dnwk@linkun.info> wrote:
ens4 is not a physical devices. It is latched onto ens3 as a virtual device.
I tried to put ens4 on both lines and got error “Cannot find device "ens4"”
Kun
________________________________ From: Scott Nicholas <scott.nicholas@scottn.usmailto:scott.nicholas@scottn.us> Sent: Monday, September 16, 2019 4:33:20 PM To: AMPRNet working group <44net@mailman.ampr.orgmailto:44net@mailman.ampr.org> Cc: KUN LIN <dnwk@linkun.infomailto:dnwk@linkun.info> Subject: Re: [44net] need help configure gateway on ubuntu
If this is verbatim then the issue is that you used ens4 in one line and ens3 in another.
Regards, Scott On Mon, Sep 16, 2019, 5:54 PM KUN LIN via 44Net <44net@mailman.ampr.orgmailto:44net@mailman.ampr.org> wrote: I am trying to configure the tunnel on Ubuntu 18 on a cloud VM just to figure out how the configuration works. I am looking at http://wiki.ampr.org/wiki/Ubuntu_Linux_Gateway_Examplehttps://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.ampr.org%2Fwiki%2FUbuntu_Linux_Gateway_Example&data=02%7C01%7C%7C089890ca2a254896f28c08d73b1c6cd4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637042865575016487&sdata=9t0vMXrVIjn%2BCh%2BDHeiouvPMzZvmz3UyJDnwjYR0Vgk%3D&reserved=0 and have trouble configure the interface. I have configure
auto ens4
iface ens3 inet static
address {my allocated IP}
netmask 255.255.255.252
However, the ifup ens4 command will failed to bring up ens4 interface. And of course when running ampr-run.sh and find_pass.sh will resulted in Setting SO_BINDTODEVICE: No such device.
Any advices on how to set it up on Ubuntu 18?
Thanks
Kun
_________________________________________ 44Net mailing list 44Net@mailman.ampr.orgmailto:44Net@mailman.ampr.org https://mailman.ampr.org/mailman/listinfo/44nethttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.ampr.org%2Fmailman%2Flistinfo%2F44net&data=02%7C01%7C%7C089890ca2a254896f28c08d73b1c6cd4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637042865575026487&sdata=onwzo0Dv%2BdlIwCr%2FZY%2FwzYcAkPeoFVrGr8CG0IQlHxk%3D&reserved=0