没什么好说的。
分类: 嵌入式
2011-12-28 15:24:10
Quote: |
nvram set vlan0ports="1 2 3 5*" nvram set vlan2hwname=et0 nvram set vlan2ports="4 5" |
Quote: |
ifconfig vlan2 192.168.2.1 netmask 255.255.255.0 |
Quote: |
iptables -I FORWARD -i vlan1 -o vlan2 -j ACCEPT iptables -I FORWARD -i vlan2 -o vlan1 -j ACCEPT iptables -I FORWARD -i ppp0 -o vlan2 -j ACCEPT iptables -I FORWARD -i vlan2 -o ppp0 -j ACCEPT iptables -I INPUT -i vlan2 -j ACCEPT iptables -I INPUT -i vlan1 -j ACCEPT |
Quote: |
interface=vlan2 interface=vlan1 interface=vlan0 interface=eth1 dhcp-range=192.168.1.100,192.168.1.200,1h dhcp-range=192.168.2.100,192.168.2.200,1h |