Koozali.org: home of the SME Server

Wan 10 mb half duplex

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Wan 10 mb half duplex
« on: July 05, 2007, 02:26:52 AM »
Dear all,

I like to use the server also as gateway.
the problem is the "modem" i'm using for internet is only 10mb full duplex.
By default the server tries to connect with 1000mb full duplex.


When i do these intructions it works:

# vi /etc/sysconfig/network-scripts/ifcfg-eth1

ETHTOOL_OPTS="speed 10 duplex full autoneg off"

# /etc/init.d/network restart

but everytime i save some settings this will be overwritten.
How can i place that 10mb line permanently in the configuration?


Kind regards,

Hendrik
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Wan 10 mb half duplex
« Reply #1 on: July 05, 2007, 02:07:49 PM »
Quote from: "tropicalview"

How can i place that 10mb line permanently in the configuration?


config setprop ExternalInterface EthtoolOpts "speed 10 duplex full autoneg off"

Offline barame

  • **
  • 26
  • +0/-0
Thank you very much.
« Reply #2 on: July 06, 2007, 06:59:43 PM »
I'm also have the same problem. I test it and it wotking fine.

Barame

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Thank you
« Reply #3 on: July 08, 2007, 05:43:42 AM »
Thanks it worked fine.
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline zeno

  • *
  • 8
  • +0/-0
wol g option
« Reply #4 on: July 12, 2007, 11:04:37 AM »
Hi 2 all,

i tried to set the wol g option to the external interface but i have a problem:

1) i modified the ifcfg-eth0 file by hand to enable wol g through the option
ETHTOOL_OPTS="wol g". This modify works only if my external interface is set with a static ip address. On the contrary, if i enable a dynamic ip address with dhcp, the option ETHTOOL doesn't work at all.

2)Reading this thread i set the wol g option in this way:
[root@smeserver ~]#config setprop ExternalInterface EthtoolOpts "wol g"
The eth0 nic has a dynamic ip address assigned by a dhcp server but the "g" option is nevere set. Infact, if i try to read the ethtool option i read always:

Code: [Select]

[root@smeserver ~]# ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 32
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        [b]Wake-on: d[/b]
        Current message level: 0x00000007 (7)
        Link detected: yes
[root@smeserver ~]#


The question is:
is it possible to set the wol g option when i have a external interface configured with dhcp? If yes, how can i get wol g permanent set?

Thans,
Zeno[/b]

Offline zeno

  • *
  • 8
  • +0/-0
Re: wol g option
« Reply #5 on: July 12, 2007, 11:05:50 AM »
Quote from: zeno
Hi 2 all,

i tried to set the wol g option to the external interface but i have a problem:

1) i modified the ifcfg-eth0 file by hand to enable wol g through the option
ETHTOOL_OPTS="wol g". This modify works only if my external interface is set with a static ip address. On the contrary, if i enable a dynamic ip address with dhcp, the option ETHTOOL doesn't work at all.

2)Reading this thread i set the wol g option in this way:
[root@smeserver ~]#config setprop ExternalInterface EthtoolOpts "wol g"
The eth0 nic has a dynamic ip address assigned by a dhcp server but the "g" option is nevere set. Infact, if i try to read the ethtool option i read always:

Code: [Select]

[root@smeserver ~]# ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 32
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        [b]Wake-on: d[/b]
        Current message level: 0x00000007 (7)
        Link detected: yes
[root@smeserver ~]#


The question is:
is it possible to set the wol g option when i have a external interface configured with dhcp? If yes, how can i get wol g permanent set?

Thans,
Zeno