ubuntu17配置固定IP静态IP
来源:互联网 发布:淘宝卖家怎么做微淘 编辑:程序博客网 时间:2024/06/05 12:45
$ ifconfigdocker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
inet6 fe80::42:e7ff:fe37:b3c1 prefixlen 64 scopeid 0x20<link>
ether 02:42:e7:37:b3:c1 txqueuelen 0 (以太网)
RX packets 8453 bytes 1371909 (1.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9763 bytes 23399848 (23.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker_gwbridge: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.18.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
inet6 fe80::42:78ff:fe10:72fa prefixlen 64 scopeid 0x20<link>
ether 02:42:78:10:72:fa txqueuelen 0 (以太网)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7480 bytes 1050620 (1.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.105 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::20f:4de4:74a0:2e04 prefixlen 64 scopeid 0x20<link>
ether 1c:1b:0d:c2:54:bd txqueuelen 1000 (以太网)
RX packets 514393 bytes 560697470 (560.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 320009 bytes 37329723 (37.3 MB)
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 484166 bytes 145914963 (145.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 484166 bytes 145914963 (145.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethcd4e106: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::6870:d7ff:feef:6932 prefixlen 64 scopeid 0x20<link>
ether 6a:70:d7:ef:69:32 txqueuelen 0 (以太网)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11380 bytes 1391320 (1.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo vi /etc/modprobe.d/blacklist.conf # 在文件末尾加上`blacklist ipv6`tail -1 /etc/modprobe.d/blacklist.conf
blacklist ipv6
sudo ifconfig enp2s0 192.168.0.125 netmask 255.255.255.0sudo route add default gw 192.168.0.1sudo service network-manager restartsudo vi /etc/network/interfaces # 在文件末尾加上 `dns-nameservers 8.8.8.8 8.8.4.4`tail -1 /etc/network/interfaces
dns-nameservers 8.8.8.8 8.8.4.4
sudo reboot
阅读全文
0 0
- ubuntu17配置固定IP静态IP
- Centos配置固定ip
- 虚拟机固定ip配置
- redhat 固定ip配置
- Centos7配置固定IP
- VMware配置固定ip
- ubuntu 配置固定ip
- 【ubuntu】配置固定ip
- vm设置静态、固定ip
- Archlinux设置静态固定IP
- Linux Centos7静态(固定)IP地址的详细配置
- 共享(独享)IP动态(静态)IP固定IP?
- centos 配置ip dns 固定的ip
- centos 配置ip dns 固定的ip
- Uubuntu 配置网络固定IP
- linux虚拟机配置固定IP
- ubuntu16.10固定ip配置
- CentOS-5.5固定IP配置
- iOS-NSUndoManager与怎样弄崩微信
- 产品介绍和产品说明
- oc的指针与对象的关系同c++中的指针和对象的关系作对比
- 【数位dp】不要62
- Anaconda 5.0.0 JupyterLab 0.27.0 中使用 matplotlib basemap 绘制世界地图
- ubuntu17配置固定IP静态IP
- react框架介绍
- 跨界 | 土木工程也开始AI化了:用卷积神经网络实现结构损伤视觉识别
- 首发 | 北京踏歌智行完成Pre-A轮数千万融资,辰韬资本领投
- 那篇《中国AI觉醒》的文章,让西方的吃瓜群众们对中国展开了疯狂膜拜…不信你看
- 一周AI看点 | 沙特授予机器人公民身份,美国信息产业理事会发布《人工智能政策原则》
- 活字格企业Web应用生成器V3.0发布更新,支持插件管理和多人协作开发
- 高数 01.09连续函数的运算与初等函数的连续性
- 冬虫夏草