by Devin Yang
(This article was automatically translated.)

Published - 4 years ago ( Updated - 4 years ago )

Notes on ubuntu network card fixed and floating IP, this is my setting on Nvidia TX2.
Other versions of ubuntu Linux should also be available
Modify
/etc/network/interfaces

Floating IP setting method

iface eth0 inet dhcp

Fixed IP setting method

# The primary network interface
auto eth0
iface eth0 inet static
    address 192.168.0.108
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    dns-nameservers 168.95.1.1 8.8.8.8
    dns-domain ccc.tc
    dns-search ccc.tc

Restart the network

 /etc/init.d/networking restart

 

Tags:

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


certbot,letencrypt

Manually update the full record of Whildcard certificate, tips on how to automatically update unbelievable

I wrote this record of manual update first, because I think about the future and then write an automatic update. That's how you have a control group. If we have used Let's encrypt to apply for a whildcard certificate, we will definitely find this passage after the successful application.

linux,config

Ubuntu ppp0 renamed eth0

Not sure who will use it, but I encountered it myself, because my home is a floating IP. A software I installed cannot detect that the ppp0 network card is an external network, so changing the name can trick him into successfully installing it.

linux, cli

How to use the find command to find files that have been changed within 7 days

If we have changed some files, how to find out through the command line?