打造家庭与小型办公网络安全防线:从基础配置到高级应用
静态 IP 地址的持久化配置
为了让每个静态 IP 地址能够持久化,我们需要将内部机器中每张网卡的 MAC 地址输入到相应的 hardware ethernet 字段中。以下是示例代码:
host fixed6 {
hardware ethernet 00:00:c0:a8:80:06;
fixed-address 192.168.1.6;
}
host fixed7 {
hardware ethernet 00:00:c0:a8:80:07;
fixed-address 192.168.1.7;
}
host fixed8 {
hardware ethernet 00:00:c0:a8:80:08;
fixed-address 192.168.1.8;
}
host fixed9 {
hardware ethernet 00:00:c0:a8:80:09;
fixed-address 192.168.1.9;
}
#### Net Devices ####
host wap {
hardware ethernet 00:0c:66:0c:2f:14;
fixed-address 192.168.1.254;
}
要查看网卡的唯一地址,在 Linux 系统的 shell 提示符下输入 /sbin/ifconfig ,在 Windows 命令行输入 ipconfig /all
超级会员免费看
订阅专栏 解锁全文
16万+

被折叠的 条评论
为什么被折叠?



