hellomouse / node-tunfd

mostly incomplete: please don't use this - Node.js native module (N-API) for creating and configuring tun/tap interfaces and maybe also more things
8 stars 0 forks source link

Setting IP #1

Open RangerMauve opened 4 years ago

RangerMauve commented 4 years ago

Is there a way to set the IP of the interface? Ideally both IPv4 and IPv6.

NN-Binary commented 3 years ago

Yeah please that would be a great enhancement

xlmnxp commented 2 years ago
sudo ip address add 10.23.0.1/30 dev <name of interface>
sudo ip link set <name of interface> up