mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-25 11:57:55 +02:00
fix minor typo & move loopback to network config
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4683 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f7d68e0a92
commit
465de48141
@ -1,5 +1,11 @@
|
|||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
|
||||||
|
config interface loopback
|
||||||
|
option ifname lo
|
||||||
|
option proto static
|
||||||
|
option ipaddr 127.0.0.1
|
||||||
|
option netmask 255.0.0.0
|
||||||
|
|
||||||
config interface lan
|
config interface lan
|
||||||
option ifname eth0
|
option ifname eth0
|
||||||
option proto static
|
option proto static
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
|
||||||
|
config interface loopback
|
||||||
|
option ifname lo
|
||||||
|
option proto static
|
||||||
|
option ipaddr 127.0.0.1
|
||||||
|
option netmask 255.0.0.0
|
||||||
|
|
||||||
config interface lan
|
config interface lan
|
||||||
option ifname eth0
|
option ifname eth0
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
|
config interface loopback
|
||||||
|
option ifname lo
|
||||||
|
option proto static
|
||||||
|
option ipaddr 127.0.0.1
|
||||||
|
option netmask 255.0.0.0
|
||||||
|
|
||||||
config interface lan
|
config interface lan
|
||||||
option type bridge
|
option type bridge
|
||||||
option ifname "eth0 ath0"
|
option ifname "eth0 ath0"
|
||||||
|
@ -61,6 +61,14 @@ END {
|
|||||||
p("vlan1", "vlan1ports")
|
p("vlan1", "vlan1ports")
|
||||||
print ""
|
print ""
|
||||||
print ""
|
print ""
|
||||||
|
print "#### Loopback configuration"
|
||||||
|
print "config interface loopback"
|
||||||
|
print " option ifname \"lo\""
|
||||||
|
print " option proto static"
|
||||||
|
print " option ipaddr 127.0.0.1"
|
||||||
|
print " option netmask 255.0.0.0"
|
||||||
|
print ""
|
||||||
|
print ""
|
||||||
print "#### LAN configuration"
|
print "#### LAN configuration"
|
||||||
print "config interface lan"
|
print "config interface lan"
|
||||||
print " option type bridge"
|
print " option type bridge"
|
||||||
|
@ -61,6 +61,14 @@ END {
|
|||||||
p("vlan1", "vlan1ports")
|
p("vlan1", "vlan1ports")
|
||||||
print ""
|
print ""
|
||||||
print ""
|
print ""
|
||||||
|
print "#### Loopback configuration"
|
||||||
|
print "config interface loopback"
|
||||||
|
print " option ifname \"lo\""
|
||||||
|
print " option proto static"
|
||||||
|
print " option ipaddr 127.0.0.1"
|
||||||
|
print " option netmask 255.0.0.0"
|
||||||
|
print ""
|
||||||
|
print ""
|
||||||
print "#### LAN configuration"
|
print "#### LAN configuration"
|
||||||
print "config interface lan"
|
print "config interface lan"
|
||||||
print " option type bridge"
|
print " option type bridge"
|
||||||
|
@ -22,7 +22,3 @@ for iface in $(/sbin/ifconfig -a | awk '{print $1}' | grep eth); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
load_modules /etc/modules /etc/modules.d/*
|
load_modules /etc/modules /etc/modules.d/*
|
||||||
|
|
||||||
ifconfig lo 127.0.0.1 up
|
|
||||||
ifconfig eth0 promisc
|
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ scan_interfaces() {
|
|||||||
interface)
|
interface)
|
||||||
config_get proto "$CONFIG_SECTION" proto
|
config_get proto "$CONFIG_SECTION" proto
|
||||||
append interfaces "$CONFIG_SECTION"
|
append interfaces "$CONFIG_SECTION"
|
||||||
config_get iftype "$CONFIG_SECTION" iftype
|
config_get iftype "$CONFIG_SECTION" type
|
||||||
case "$iftype" in
|
case "$iftype" in
|
||||||
bridge)
|
bridge)
|
||||||
config_get ifname "$CONFIG_SECTION" ifname
|
config_get ifname "$CONFIG_SECTION" ifname
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
|
config interface loopback
|
||||||
|
option ifname lo
|
||||||
|
option proto static
|
||||||
|
option ipaddr 127.0.0.1
|
||||||
|
option netmask 255.0.0.0
|
||||||
|
|
||||||
config interface lan
|
config interface lan
|
||||||
option ifname eth0
|
option ifname eth0
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
|
config interface loopback
|
||||||
|
option ifname lo
|
||||||
|
option proto static
|
||||||
|
option ipaddr 127.0.0.1
|
||||||
|
option netmask 255.0.0.0
|
||||||
|
|
||||||
config interface lan
|
config interface lan
|
||||||
option type bridge
|
option type bridge
|
||||||
option ifname "eth0 ath0"
|
option ifname "eth0 ath0"
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
|
config interface loopback
|
||||||
|
option ifname lo
|
||||||
|
option proto static
|
||||||
|
option ipaddr 127.0.0.1
|
||||||
|
option netmask 255.0.0.0
|
||||||
|
|
||||||
config interface lan
|
config interface lan
|
||||||
option type bridge
|
option type bridge
|
||||||
option ifname "eth1 eth2"
|
option ifname "eth1 eth2"
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
|
config interface loopback
|
||||||
|
option ifname lo
|
||||||
|
option proto static
|
||||||
|
option ipaddr 127.0.0.1
|
||||||
|
option netmask 255.0.0.0
|
||||||
|
|
||||||
config interface lan
|
config interface lan
|
||||||
option type bridge
|
option type bridge
|
||||||
option ifname "eth1 eth2"
|
option ifname "eth1 eth2"
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
|
||||||
|
config interface loopback
|
||||||
|
option ifname lo
|
||||||
|
option proto static
|
||||||
|
option ipaddr 127.0.0.1
|
||||||
|
option netmask 255.0.0.0
|
||||||
|
|
||||||
config interface lan
|
config interface lan
|
||||||
option ifname eth0
|
option ifname eth0
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user