1. 程式人生 > >高階網路配置及ipv6網路的管理

高階網路配置及ipv6網路的管理

命令管理方式
(1)新增
systemctl stop NetworkManager                                              ##關閉網路管理服務
brctl show                                                                                    ##顯示
brctl addbr br0                                                                             ##新增網橋br0
brctl addif br0 eth0                                                                      ##給網橋br0新增eth0網路連線

ifconfig eth0 up                                                                           ##eth0正常工作
ifconfig br0 172.25.254.x(x為虛擬機器的ip) netmask 255.255.255.0
brctl show
ping 172.25.254.250

(2)刪除
ifconfig br0 down                                                                         ##網橋br0掛掉
brctl delif br0 eth0                                                                       ##刪除網橋bro上的eth0連線

brctl delbr br0                                                                              ##刪除網橋br0
brctl show