双网卡PC+Ubuntu系统实现路由器
为了实现路由器功能,这里需要使用NAT技术,详细流程如下:
STEP 1
为机器装好两块网卡。集成的或是独立的无所谓。编辑/etc/network/interface,如下
auto eth0
iface eth0 inet static
address 192.168.X.XX
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 202.XX.XX.XXX
双网卡PC+Ubuntu系统实现路由器
为了实现路由器功能,这里需要使用NAT技术,详细流程如下:
STEP 1
为机器装好两块网卡。集成的或是独立的无所谓。编辑/etc/network/interface,如下
auto eth0
iface eth0 inet static
address 192.168.X.XX
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 202.XX.XX.XXX