DHCP上网时netsetting的设置


netsettings如下:
ETH0|192.168.1.1|255.255.255.0|00:14:97:C4:B5:C7
ETH1|10.0.0.157|255.0.0.0|00:56:2C:4F:C2:E8|10.0.0.2|static
DNS|202.96.64.68|
PPPOE||
PPTP|||DISABLE
OPENVPN|||DISABLE
DDNS|dyndns.org||||disable
DHCPD|192.168.1.2|192.168.1.254|255.255.255.0|192.168.1.1|enable|x.x.x.x|

板子配置情况和网络拓扑:
root:~> iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
Chain FORWARD (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  192.168.1.0/24       anywhere
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
root:~> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:14:97:C4:B5:C7
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20852 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22741 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7367562 (7.0 MiB)  TX bytes:24620128 (23.4 MiB)
          Interrupt:53 Base address:0x300
eth1      Link encap:Ethernet  HWaddr 00:56:2C:4F:C2:E8
          inet addr:10.0.0.157  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36164 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20551 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28057068 (26.7 MiB)  TX bytes:7204220 (6.8 MiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值