I believe I might have a path to resolve this problem. I believe there are undocumented options in the .xml file for <media> and <mediaopt>. I'm trying to make use of these but they don't seem to be working (or I don't understand how to use them!).
Here is a snip of the .xml file I'm working with: <interfaces> <lan> <if>sis2</if> <ipaddr>10.43.10.1</ipaddr> <subnet>24</subnet> </lan> <wan> <if>sis1</if> <mtu/> <spoofmac/> <ipaddr>10.43.7.10</ipaddr> <subnet>24</subnet> <gateway>10.43.7.1</gateway> </wan> <opt1> <descr>OPT1</descr> <if>sis0</if> <ipaddr>10.43.43.10</ipaddr> <subnet>24</subnet> <gateway>10.43.43.1</gateway> <media>10baseT/UTP</media> <mediaopt>full-duplex</mediaopt> <bridge/> <enable/> </opt1> </interfaces>
Please notice the opt1 interface above contains <media> and <mediaopt> tags. Here is the ifconfig command output from exec.php on the m0n0wall after loading this configuration:
$ ifconfig sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=40<POLLING> inet 10.43.43.10 netmask 0xffffff00 broadcast 10.43.43.255 ether xx:xx:xx:xx:xx:xx media: Ethernet 10baseT/UTP <full-duplex> (100baseTX <full-duplex>) status: active sis1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=40<POLLING> inet 10.43.7.10 netmask 0xffffff00 broadcast 10.43.7.255 ether xx:xx:xx:xx:xx:xx media: Ethernet autoselect (10baseT/UTP) status: active sis2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=40<POLLING> inet 10.43.10.1 netmask 0xffffff00 broadcast 10.43.10.255 ether xx:xx:xx:xx:xx:xx media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000
The sis0 output is a bit confusing here!! Any help would be appreciated.
Thanks, Greg
|