Re: Network interface restart




Op woensdag 09 mei 2007, schreef Sam Lawrance:

Hi,

Could someone please point out where I made the mistake?

When your network interface went down, you lost the connection, your
shell lost the terminal and your script was terminated before it
could finish doing what it was supposed to. Possibly you need to use
something like "nohup" or "screen" (from ports), or have some other
form of terminal available.

Thanks for your answer.

But as I said, I ran the script from a screen session, so that makes me
wonder
why the execution was aborted.

But is running '/etc/rc.d/netif restart'' known to cause problems? I think
I
shouldn't have to use scripts like these just to change a setting on the
network interface.

Kind regards,

--
Bram Schoenmakers


Hi Bram

You're exactly right. You don't need to run scripts like this. "ifconfig" will do what you want. As far as I can see,

"ifconfig bge0 mtu 1472"

should suffice.

Cheers,

Benjamin
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Bridge configuration for KVM
    ... I am trying to boot a KVM virtual machine using the following init script: ... In another machine I'm using KVM with a single network interface and I ... iface lo inet loopback ... # iface eth0 inet dhcp ...
    (Debian-User)
  • Re: Network interface restart
    ... When your network interface went down, you lost the connection, your ... shell lost the terminal and your script was terminated before it ... But as I said, I ran the script from a screen session, so that makes me wonder ...
    (freebsd-questions)
  • Re: Network interface restart
    ... When your network interface went down, you lost the connection, your ... shell lost the terminal and your script was terminated before it ... But as I said, I ran the script from a screen session, so that makes me wonder ...
    (freebsd-questions)
  • Re: Network interface restart
    ... I tried to reduce the MTU of a network interface on a remote FreeBSD 6.2 ... somehow the script was aborted, although I ran it in a 'screen' session over ... When your network interface went down, you lost the connection, your shell lost the terminal and your script was terminated before it could finish doing what it was supposed to. ...
    (freebsd-questions)
  • Re: Dual ethernet ports, one IP address
    ... Perhaps is it possible for you to write an script? ... possible for a script to check the network interface and if one fail, ... but then on the same Linux server. ...
    (comp.os.linux.networking)

Loading