Page 1 of 1

Static IP on tap device

Posted: Mon May 04, 2015 2:07 pm
by kh_tsang
How to assign static IP on tap device automatically when each restart of the softether vpn service?

Currently, I need to execute ip command manually after each restart of the softether vpn server service.

Re: Static IP on tap device

Posted: Thu May 14, 2015 7:54 am
by thisjun
Do your OS have any tool like ifupdown?

Re: Static IP on tap device

Posted: Thu May 14, 2015 4:30 pm
by kh_tsang
I think so but not sure. It is a ubuntu image coming from amazon aws.

Re: Static IP on tap device

Posted: Sun May 17, 2015 4:46 pm
by kh_tsang
Currently, in my startup script, the ip command is executed 4 seconds after the vpn server is started.

In the manual, bridge mode is suggested instead of using NAT. However, due to technical limitations, NAT is needed, is it a better idea to do NAT with tap device and iptables then using SecureNAT? I still use the SecureNAT function for DHCP and DNS forwarding.

Re: Static IP on tap device

Posted: Thu May 28, 2015 6:55 am
by thisjun
It depend on environment and your intent.

Re: Static IP on tap device

Posted: Wed Jun 03, 2015 11:10 am
by hatimux
You can simply configure your tap interface to use dhcp.
Since you are using uybuntu, modify the network config file /etc/network/interfaces:
!!!!
auto tap
iface tap inet dhcp
!!!!