Hello Carl,
On Fri, 31 Oct 2003 02:38:31 -0500 (EST), Carl Gehr wrote:
>
>Since you brought up the Cmd files to switch the DHCP between
>interfaces, I'd like to revisit the subject. I just returned from a
>trip where I had easy access to both a wired and wireless connection.
>All attempts to use commands distributed here a while back to switch
>the interface failed.
>
>Just so we're all starting from the same place, here are the specifics
>of my configuration and the command files:
>
>=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> Configuration Information
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>LAN-0: Wired DriverName = E100B$
> TCP/IP
> NetBIOS for OS/2
> DHCP active.
>
>LAN-1: 802.11b DriverName = PRISMP$
> TCP/IP
> NetBIOS for OS/2
>
>=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> The Commands
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Switch Wired to Wireless
>========================
>/* CmdName: ActENet.Cmd */
>/* Turn the Radio ON
> * This command activates the 802.11b interface
> *
> * The wireless NIC should be inserted in the PC Card slot
> */
>say "Turn the Wireless Radio ON "
>say "Activating the Wireless Network Card"
>'@ ifconfig lan0 down'
>'@ ifconfig lan0 delete'
>'@ dhcpmon -t'
>'@ route -fh'
>'@ arp -f'
> /* '@ dhcpstrt -i lan1 -d 0' */
>'@ Call c:\mptn\bin\mptstart.cmd -i lan1 -d 5'
>say "Wireless Networking Enabled"
>return
Why do you call mptstart.cmd? This will not work according to me, because the parameters
will not be used by this batch file.
No DHCP for the Wifi NIC? Than you can use something like:
'ifconfig lan1 192.168.0.2 netmask 255.255.255.0 metric 1 mtu 1500'
'route add default 192.168.0.1 -hopcount 1'
For the (Wired) NIC with DHCP you need:
'dhcpstrt -i lan0 -d 10'
I was not able to use Netbios on both NIC's, so I don't know if your setup might work.
Groetjes, / Kind regards,
Frank Vos
Amstelveen
The Netherlands
__________________________________________________________
Member of the Dutch HCC OS/2 User Group
eComStation is a supercharged version of OS/2 4.5
__________________________________________________________
--- IQ Error: Brain Not Ready (A)bort (R)etry (F)orget
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, send a message to
steward@2rosenthals.com with the command
"unsubscribe os2-wireless_users" in the body
(omit the quotes).
For help with other commands, send a message
to steward@2rosenthals.com with the command
"help" in the body (omit the quotes).