fengyv

http://www.cnblogs.com/fengyv

导航

ArchLinux 配置双网卡

Posted on 2011-03-31 10:49  fengyv  阅读(905)  评论(0编辑  收藏  举报

(1)eth0 使用固定IP,访问内网

(2)eth1 使用DHCP,访问外网

 

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

eth0="eth0 172.22.11.22 netmask 255.255.0.0 broadcast 172.22.11.255"
eth1="dhcp"
INTERFACES=(eth0 eth1)