3、图形化配置界面
打开nm-connection-editor,添加一个新连接:
三、配置桥接网络
1、使用brctl命令
查看桥接网络:
[root@linuxidc ~]# systemctl restart network
[root@linuxidc ~]# brctl show
bridge namebridge idSTP enabledinterfaces
virbr08000.000000000000yes
添加桥接网络:
[root@linuxidc ~]# brctl addbr br0
添加接口:
[root@linuxidc ~]# brctl addif ens34 br0
2、使用nmcli命令
[root@linuxidc ~]# nmcli connection add con-name br1 type bridge ifname br1
[root@linuxidc ~]# nmcli connection modify br1 ipv4.addresses "192.168.20.20/24,192.168.20.1"
[root@linuxidc ~]# nmcli connection modify br1 ipv4.method manual
[root@linuxidc ~]# nmcli connection add con-name br1-port1 type bridge-slave ifname ens34 master br1
2015职称计算机考试书PowerPoint2007中 .. 定价:¥45 优惠价:¥42 更多书籍 | |
2015年全国职称计算机考试教材(2007模 .. 定价:¥225 优惠价:¥213 更多书籍 |