Set Network Information
Verb:
SN
Description:
This new command will allow easy configuration of the network information.
Support:
- XPe
- CE 2.12
- CE.Net
- CE 3.0
- Linux
- XPe Usage
- Continue if Script Command Fails: No
- Arguments:
- IP=IP Address
- ED=DHCP on/off
- SM=Subnet Mask
- GW=Gateway Address
- 0D=DNS manual (0) or auto (1)
- 1D=DNS manual entry 1
- 2D=DNS manual entry 2
- 0W = WINS manual (0) or auto (1)
- 1W=WINS manual entry 1
- 2W=WINS manual entry 2
- DM=Domain suffix
- Examples:
SN "IP=192.168.1.10" "ED=0" "SM=255.255.255.0"
"GW=192.168.1.1" "0D=0" "1D=192.168.3.21"
"2D=192.168.3.22" "0W=0" "1W=192.168.1.2"
"2W=192.168.1.3" "DM=MyDomain"
The above example will set the following:
Disable DHCP
Assign Static IP as 192.168.1.10
Subnet Mask 255.255.255.0
Gateway 192.168.1.1
Set manual entry of DNS
Assign primary DNS as 192.168.3.21
Assign secondary DNS as 192.168.3.22
Assign the DNS domain to MyDomain
Set manual entry of WINS
Assign primary WINS as 192.168.1.2
Assign secondary WINS as 192.168.1.3
- CE Usage
- Continue if Script Command Fails: No
- Arguments:
- IP=IP Address
- ED=DHCP on/off
- SM=Subnet Mask
- GW=Gateway Address
- 0D=DNS manual (0) or auto (1)
- 1D=DNS manual entry 1
- 2D=DNS manual entry 2
- 0W = WINS manual (0) or auto (1)
- 1W=WINS manual entry 1
- 2W=WINS manual entry 2
- DM=Domain suffix
- Examples:
SN "IP=192.168.1.10" "ED=0" "SM=255.255.255.0"
"GW=192.168.1.1" "0D=0" "1D=192.168.3.21"
"2D=192.168.3.22" "0W=0" "1W=192.168.1.2"
"2W=192.168.1.3" "DM=MyDomain"
The above example will set the following:
Disable DHCP
Assign Static IP of 192.168.1.10
Subnet Mask 255.255.255.0
Gateway 192.168.1.1
Set manual entry of DNS
Assign primary DNS as 192.168.3.21
Assign secondary DNS as 192.168.3.22
Assign the DNS domain to MyDomain
Set manual entry of WINS
Assign primary WINS as 192.168.1.2
Assign secondary WINS as 192.168.1.3
- Linux Usage
- Continue if Script Command Fails: No
- Arguments:
- IP=IP Address
- ED=DHCP on/off
- SM=Subnet Mask
- GW=Gateway Address
- 0D=DNS manual (0) or auto (1)
- 1D=DNS manual entry 1
- 2D=DNS manual entry 2
- 0W = WINS manual (0) or auto (1)
- 1W=WINS manual entry 1
- 2W=WINS manual entry 2
- DM=Domain suffix
- Examples:
SN "IP=192.168.1.10" "ED=0" "SM=255.255.255.0"
"GW=192.168.1.1" "0D=0" "1D=192.168.3.21"
"2D=192.168.3.22" "0W=0" "1W=192.168.1.2"
"2W=192.168.1.3" "DM=MyDomain"
The above example will set the following:
Disable DHCP
Assign Static IP of 192.168.1.10
Subnet Mask 255.255.255.0
Gateway 192.168.1.1
Set manual entry of DNS
Assign primary DNS as 192.168.3.21
Assign secondary DNS as 192.168.3.22
Assign the DNS domain to MyDomain
Set manual entry of WINS
Assign primary WINS as 192.168.1.2
Assign secondary WINS as 192.168.1.3
General Rules:
- Do not set multiple devices with the same IP address (IP=).
- Sending ED=1 (DHCP on) will overrule the other entries
- 1D & 2D are only processed if 0D=0
- 1W & 2W are only processed if 0W=0