News: This forum is now permanently frozen.
Pages: [1]
Topic: Bug in <media> and/or <mediaopt>  (Read 2333 times)
« on: August 13, 2007, 00:38:48 »
Greg *
Posts: 12

Hey All,

I believe I have found a bug in the use of <media> and <mediaopt> on a Soekris 4801-50 running m0n0wall 1.231.  I am working to lock down an Ethernet Interface on the router to 10 mbps and full-duplex.  I used exec.php to find the correct tag options using ifconfig -m. 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
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines