1.虛擬機(jī)中配置橋接模式
2.打開終端
3.查看本地網(wǎng)絡(luò)配置
4.配置本地靜態(tài)IP
輸入
sudo gedit /etc/network/interfaces
5.配置DNS
輸入
sudo gedit /etc/systemd/resolved.conf
6.重啟網(wǎng)絡(luò)服務(wù)
輸入
sudo /etc/init.d/networking restart
7.安裝SSH-SERVER
輸入
sudo apt install net-tools
sudo apt install openssh-server
8.查看網(wǎng)絡(luò)狀態(tài)
ifconfig