Re: How to disable at-boot configuration of a network interface but permit manual use of rc.d?

From: Niki Denev (nike_d_at_cytexbg.com)
Date: 06/27/05

  • Next message: Darren Pilgrim: "RE: How to disable at-boot configuration of a network interface but permit manual use of rc.d?"
    Date: Mon, 27 Jun 2005 22:21:55 +0300
    To: Darren Pilgrim <dmp@bitfreak.org>
    
    

    Darren Pilgrim wrote:
    > There are some conditions to the task given by the subject:
    >
    > 1: The interface must be present at boot.
    > 2: Use of /etc/rc.d scripts to start and stop the interface is
    > desirable.
    >
    > The first condition poses no problem, just don't include the relevant
    > ifconfig_ifn line in /etc/rc.conf and the interface won't be configured.
    > But rc.d/dhclient and rc.d/netif won't work without an ifconfig line for
    > the interface.
    >
    > Adding the ifconfig line and then listing every interface but the one I
    > want configured in network_interfaces does prevent it from being
    > configured at boot while having an ifconfig line in rc.conf, but if I
    > try to use rc.d/netif to start the interface, rc.d/netif does nothing
    > because it tests the interface against the contents of
    > network_interfaces and cloned_interfaces, so the interface I left out
    > will be excluded.
    >
    > Have I overlooked an option somewhere?
    >

    Hi,

    What happens if you configure the interface in 'down' state, like :

    ifconfig_fxp0="inet 192.168.0.10 netmask 0xffffff00 down"

    P.S.: Just an idea, never tried it :)

    --niki

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


  • Next message: Darren Pilgrim: "RE: How to disable at-boot configuration of a network interface but permit manual use of rc.d?"

    Relevant Pages

    • Re: 3620 boot from tftp
      ... DRAM configuration is 32 bits wide with parity disabled. ... 29K bytes of non-volatile configuration memory. ... Boot OK! ... interface FastEthernet0/0 ...
      (comp.dcom.sys.cisco)
    • Re: [PATCH] fakephp: Allocate PCI resources before adding the device
      ... Have you tested this with a device that isn't present at boot? ... completely changed the sysfs interface for fakephp. ... my kernel doesn't have an address attribute in the slot directories. ...
      (Linux-Kernel)
    • Re: Boot temporarilly stalls on "Bringing up interface eth0"
      ... > Every time I boot my laptop the system freezes for while right when it ... stopped the connection from coming up with boot, ... Did you consider to stop the interface from being started until the ... I leave it on now because there are few problems that I encounter with Fedora. ...
      (Fedora)
    • Re: eth0 not starting on bootup
      ... > on boot is eth0. ... the eth0 interface is now no longer starting when the ... might be here instead of or in addition to in network. ...
      (RedHat)
    • Re: [SLE] NIC wont initialize
      ... Should probably set per interface ... > # When the DHCP client is started at boot time, ... supposed to have) a fixed IP, no DHCP client stuff needed is there? ... Frank Holt ...
      (SuSE)