11 网络管理 dns dhcp.

来源:互联网 发布:java中迭代器的使用 编辑:程序博客网 时间:2024/04/28 04:07

11.管理网络
1.ip基础知识 ipv4
2进制32位—–10进制
ip地址
172.25.254.37
子网掩码
255.255.255.
网络位
172.25.254
主机位
0
2.配置ip
1.图形界面
nm-connection-editor
2.文本化图形
nmtui(主机中没有图形界面)
ifconfig 网卡
nmcli connection add type ethernet con-name westos ifname eth0 autoconnect yes
nmcli connection add type ethernet con-name westos ifname eth0 ip4 ip/24
nmcli connection delete westos
nmcli connection show
nmcli connection down westos
nmcli connection up westos
nmcli connection modify “westos” ipv4.addresses newip/24
nmcli connection modify “westos” ipv4.method

0 0
原创粉丝点击