Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
I am using montavista embedded linux 2.6 and I am trying to do the following:
*) connect a loopback cable to the ethernet port
*) set iptables nat rules to force the packets to go out of the ethernet layer
*) after this when I ping the local ip address, it pings fine with full duplex connection, but not with half duplex connection. Following has more details: It would be great if someone would help:
####### full duplex #########################
# /usr/local/bin/ethtool eth0
Settings for eth0:
Supported ports: [ 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: 1
Transceiver: external
Auto-negotiation: on
Link detected: yes
# /usr/local/bin/ethtool -s eth0 autoneg off
# <6>eth0: link is up, 100 FDX
# /usr/local/bin/miitool eth0
link status: up, auto negotiate: disabled, link speed: 100 Mbps, link duplex: full
# ping 192.168.1.2
PING 192.168.136.NAT: no longer support implicit source local NAT
33 (NAT: packet src 192.168.1.10 -> dst 192.168.1.2
3): 56 data bytes
64 bytes from 192.168.1.2: seq=0 ttl=64 time=141.649 ms
64 bytes from 192.168.1.2: seq=2 ttl=64 time=1.148 ms
######################## back to full duplex ############
# /usr/local/bin/ethtool -s eth0 duplex full
# <6>eth0: link is up, 100 FDX
# /usr/local/bin/miitool eth0
link status: up, auto negotiate: disabled, link speed: 100 Mbps, link duplex: full
# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: seq=0 ttl=64 time=1.559 ms
64 bytes from 192.168.1.2: seq=1 ttl=64 time=1.200 ms
--- 192.168.1.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1.200/1.379/1.559 ms
#
######### end ######
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe