linux系統怎麼修改ip地址?環境:ubuntu 18.04chen@ubuntu:~$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.16.10 netmask 255.255.252.0 broadcast 10.0.19.255
inet6 fe80::5054:ff:fea7:acc8 prefixlen 64 scopeid 0x20<link>
ether 52:54:00:a7:ac:c8 txqueuelen 1000 (Ethernet)
RX packets 6838141 bytes 772777707 (772.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6767018 bytes 1027944480 (1.0 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
BASH複制全屏
,接下來我們就來聊聊關于linux系統怎麼修改ip地址?以下内容大家不妨參考一二希望能幫到您!
環境:ubuntu 18.04
配置IP地址
chen@ubuntu:~$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.16.10 netmask 255.255.252.0 broadcast 10.0.19.255
inet6 fe80::5054:ff:fea7:acc8 prefixlen 64 scopeid 0x20<link>
ether 52:54:00:a7:ac:c8 txqueuelen 1000 (Ethernet)
RX packets 6838141 bytes 772777707 (772.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6767018 bytes 1027944480 (1.0 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
BASH複制全屏
端口映射NAT(Network address translation)可用于實現外網訪問内網服務器。登陸網關服務器,使用iptables模塊配置端口轉發規則服務:
更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!