manual link up

How link up via network driver (igb and ix) without connecting the cable?
I try manual set media, but i have status "no carrier" :(
Can I disable auto-negotiation?
 
How link up via network driver (igb and ix) without connecting the cable?
I try manual set media, but i have status "no carrier" :(
Why? What are you trying to accomplish with that? It sounds to me as if you're trying to fight symptoms while in fact you should be resolving the problem which caused those symptoms.

Can I disable auto-negotiation?
Absolutely, but that probably has nothing to do with the "no carrier" error.

Auto-negotiation is basically used to set up the right speed and duplex mode for a network card. You could use ifconfig(8) to set up parameters such as media or mediaopts and depending on the driver for the network card you can also provide options for the driver itself through use of /boot/loader.conf.

For example: the rl(4) driver supports 10baseT/UTP and 100baseTX as media types and both full and half duplex (media options).

But something tells me that's not what you're looking for.
 
Tell your teacher it's technically not possible to get the carrier active without actually having a carrier active.
 
netgraph can loop packet auto-negotiation?

Tell your teacher it's technically not possible to get the carrier active without actually having a carrier active.
Teacher linux fanat, linux have ethtool (autoneg off).
 
linux have ethtool
It won't help either, just recently I tried to "solve" a similar problem with exotic hardware configuration without transformers at PHY's. Since I didn't know that there was a problem in hardware (missing pull-ups), I thought ethtool can help, but it kept showing NOCARRIER anyway.
 
In Linux you can create a dummy interface. Try googling that for FreeBSD also. However, there is no software way to trick a carrier active on an non active interface.
 
In Linux you can create a dummy interface. Try googling that for FreeBSD also.
I'll save you the search, if_tap(4):
Code:
     The tap interface is a software loopback mechanism that can be loosely
     described as the network interface analog of the pty(4), that is, tap
     does for network interfaces what the pty(4) driver does for terminals.

     The tap driver, like the pty(4) driver, provides two interfaces: an
     interface like the usual facility it is simulating (an Ethernet network
     interface in the case of tap, or a terminal for pty(4)), and a character-
     special device ``control'' interface.  A client program transfers Ether-
     net frames to or from the tap ``control'' interface.  The tun(4) inter-
     face provides similar functionality at the network layer: a client will
     transfer IP (by default) packets to or from a tun(4) ``control'' inter-
     face.
 
I tried to make a virtual switch (netgraph):

ngctl mkpeer ix0: bridge lower link0
ngctl name ix0:lower br0
ngctl connect br0: ix0: link1 upper

As before i have status "no carrier" :(
netgraph can create full virtual network stack?
 
Back
Top