发新话题
打印

openwrt网络网卡IP网关配置

openwrt网络网卡IP网关配置

vi /etc/config/network

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.1.78'
        option delegate '0'
        option gateway '192.168.1.1'
        option dns '223.5.5.5'

# /etc/init.d/network restart

或者 http://192.168.1.78/cgi-bin/luci 管理界面,设置向导>网络设置

TOP

发新话题