Linux网络配置
配置IP地址
# 使用ifconfig
ifconfig eth0 192.168.1.3 netmask 255.255.255.0
# 使用用ip命令增加一个IP
ip addr add 192.168.1.4/24 dev eth0
# 使用ifconfig增加网卡别名
ifconfig eth0:0 192.168.1.10auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
auto eth1
iface eth1 inet dhcp配置默认路由
配置VLAN
配置硬件选项
最后更新于