Force media type across reboot



  • For my T1 vpn setup i need to force my wan interface to 10baseT Full-Duplex to match my ISP hardware.

    I can force whit the command "# ifconfig rl0 media 10baseT/UTP mediaopt full-duplex"

    But i need to re-enter the command if pfsense reboot

    What i find so far, is i need to edit /conf/config.xml but i not sure about the typo

    <wan><if>rl0</if>
                            <mtu>576</mtu>
                            <blockpriv><media><mediaopt><bandwidth>100</bandwidth>
                            <bandwidthtype>Mb</bandwidthtype>
                            <spoofmac><disableftpproxy><ipaddr>xxx.xxx.xxx.xxx</ipaddr>
                            <subnet>29</subnet>
                            <gateway>xxx.xxx.xxx.xxx</gateway>
                            <use_rrd_gateway></use_rrd_gateway></disableftpproxy></spoofmac></mediaopt></media></blockpriv></wan>

    Thanks





  • i haven't seen this faq sorry …

    <wan><if>rl0</if>
                            <mtu>576</mtu>
                            <blockpriv><media>10baseT/UTP <media><mediaopt>full-duplex <mediaopt><bandwidth>10</bandwidth>
                            <bandwidthtype>Mb</bandwidthtype>
                            <spoofmac><disableftpproxy><ipaddr>xxx.xxx.xxx.xxx</ipaddr>
                            <subnet>29</subnet>
                            <gateway>xxx.xxx.xxx.xxx</gateway>
                            <use_rrd_gateway></use_rrd_gateway></disableftpproxy></spoofmac></mediaopt></mediaopt></media></media></blockpriv></wan>

    I don't whant to break distant box so can u confirm this config is OK ?

    Thanks



  • @Doum88:

    <media>10baseT/UTP <media><mediaopt>full-duplex <mediaopt></mediaopt></mediaopt></media></media>

    It should look like:

    <media>10baseT/UTP<**/media>
                            <mediaopt>full-duplex<
    /**mediaopt></mediaopt></media>



  • Thanks for ur help !

    Work great  :D


Log in to reply