2016-01-29
2016-01-07
2015-12-25
Dreamplug, IF IP GONE.
Create a network config file manually.
# vi /etc/network/interfaces
# /sbin/ifup -a
Note-01:
# ifup -h
Note-02: When "ifup -a" and get below message, try this
ifup: interface lo already configured
ifup: interface eth0 already configured
ifup: interface eth1 already configured
# ifdown -a
# ifup -a
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
Note-01:
BusyBox v1.16.1 (2015-12-03 19:06:58 CST) multi-call binary.
Usage: ifup [-ainmvf] IFACE...
Options:
-a De/configure all interfaces automatically
-i FILE Use FILE for interface definitions
-n Print out what would happen, but don't do it
(note: doesn't disable mappings)
-m Don't run any mappings
-v Print out what would happen before doing it
-f Force de/configuration
Note-02: When "ifup -a" and get below message, try this
ifup: interface eth0 already configured
ifup: interface eth1 already configured
# ifup -a
2015-12-23
Dreamplug, uDHCPd options
File: /etc/udhcpd.conf
# Sample udhcpd configuration file (/etc/udhcpd.conf) # Values shown are defaults # The start and end of the IP lease block start 192.168.0.20 end 192.168.0.254 # The interface that udhcpd will use interface eth0
2015-11-18
2015-08-17
TCL, MAC remove ":", and call back ":".
Example MAC is 001122998877
Change example MAC to 00:11:22:99:88:77
Remove MAC symbol ":"
Change example MAC to 00:11:22:99:88:77
set macEth0 "001122998877"
for { set i 0 } {$i < 6 } { incr i } {
set temp [format "%s" [string range $macEth0 [expr $i * 2] [expr $i * 2 + 1]]]
append macEth0 "$temp"
if { $i == 5 } { break }
append macEth0 ":"
}
puts "Debug: macEth0 ==> $macEth0"
Remove MAC symbol ":"
set var_mac ""
set sfis_macEth1 ""
set var_mac [string map {: ""} $macEth0]
set sfis_macEth1 [string map {: ""} $macEth1]
puts "var_mac = $var_mac"
puts "sfis_macEth1 = $sfis_macEth1"
訂閱:
文章 (Atom)






