20250822在Ubuntu24.04.2下指定以太网卡的IP地址
2025/8/22 20:28
缘起:公司的服务器的IP地址老变!,路由器经常被其他其它部门断电重启。
导致IP地址被DHCP服务器给更改了!
直接固定IP地址了。
本来想通过VI命令编辑配置文件来指定IP地址。
后来发现ubuntu24.04下配置静态IP地址的方式改变了!
既然这样,直接使用GUI方式了!
不管配置文件了!
jinhualong@jinhualong-LEGION-REN7000K-26IRX:~$ ifconfig
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.3.105 netmask 255.255.255.0 broadcast 192.168.3.255
inet6 fe80::7a22:b143:906c:929c prefixlen 64 scopeid 0x20<link>
ether c8:53:09:61:33:1d txqueuelen 1000 (以太网)
RX packets 38733896 bytes 50199167989 (50.1 GB)
RX errors 0 dropped 1425 overruns 0 frame 0
TX packets 12845591 bytes 10847193414 (10.8 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (本地环回)
RX packets 32468 bytes 2540095 (2.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 32468 bytes 2540095 (2.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.3.60 netmask 255.255.255.0 broadcast 192.168.3.255
inet6 fe80::b7ed:f812:533c:483b prefixlen 64 scopeid 0x20<link>
ether 5c:b4:7e:a7:59:c7 txqueuelen 1000 (以太网)
RX packets 5272947 bytes 7511961704 (7.5 GB)
RX errors 0 dropped 156 overruns 0 frame 0
TX packets 57331 bytes 6227615 (6.2 MB)
TX errors 0 dropped 5 overruns 0 carrier 0 collisions 0
jinhualong@jinhualong-LEGION-REN7000K-26IRX:~$
jinhualong@jinhualong-LEGION-REN7000K-26IRX:~$
jinhualong@jinhualong-LEGION-REN7000K-

最低0.47元/天 解锁文章
1373

被折叠的 条评论
为什么被折叠?



