~peter-pearse/ubuntu/natty/ifupdown/prop001

« back to all changes in this revision

Viewing changes to ifupdown.nw

  • Committer: Steve Langasek
  • Date: 2010-06-03 11:43:07 UTC
  • mfrom: (2.1.5 sid)
  • Revision ID: vorlon@debian.org-20100603114307-nu3s74dsmuvcclge
merge Debian version 0.6.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
3600
3600
 
3601
3601
        switch(cmds(currif)) {
3602
3602
            case -1:
3603
 
                printf("Don't seem to be have all the variables for %s/%s.\n", 
 
3603
                printf("Don't seem to have all the variables for %s/%s.\n", 
3604
3604
                        liface, currif->address_family->name);
3605
3605
                failed = 1;
3606
3606
                break;
4110
4110
    [[ifconfig %iface% hw %hwaddress%]]
4111
4111
    dhclient3 [[-e IF_METRIC=%metric%]] -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \
4112
4112
        if (execable("/sbin/dhclient3"))
4113
 
    dhclient [[-e IF_METRIC=%metric%]] -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
 
4113
    dhclient [[-e IF_METRIC=%metric%]] -v -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
4114
4114
        elsif (execable("/sbin/dhclient"))
4115
4115
    pump -i %iface% [[-h %hostname%]] [[-l %leasehours%]] \
4116
4116
        elsif (execable("/sbin/pump") && mylinuxver() >= mylinux(2,1,100))
4124
4124
  down
4125
4125
    dhclient3 -r -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \
4126
4126
        if (execable("/sbin/dhclient3"))
4127
 
    cat /var/run/dhclient.%iface%.pid | xargs -i kill -TERM {} \
 
4127
    dhclient -v -r -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
4128
4128
        elsif (execable("/sbin/dhclient"))
4129
4129
    pump -i %iface% -r \
4130
4130
        elsif (execable("/sbin/pump") && mylinuxver() >= mylinux(2,1,100))
4217
4217
  description
4218
4218
    This method may be used to define the IPv6 loopback interface.
4219
4219
  up
 
4220
    modprobe -q net-pf-10 > /dev/null 2>&1 || true # ignore failure.
4220
4221
    ifconfig %iface% add ::1
4221
4222
  down
4222
4223
    ifconfig %iface% del ::1
4236
4237
                                 /address/ is dependent on this choice.
4237
4238
    mtu size               -- MTU size
4238
4239
  up
4239
 
    modprobe -q -b ipv6 || true
 
4240
    modprobe -q net-pf-10 > /dev/null 2>&1 || true # ignore failure.
4240
4241
    ifconfig %iface% [[media %media%]] [[hw %hwaddress%]] [[mtu %mtu%]] up
4241
4242
    ifconfig %iface% add %address%/%netmask%
4242
4243
    [[ route -A inet6 add ::/0 gw %gateway% %iface% ]] 
4270
4271
    ttl time              -- TTL setting
4271
4272
 
4272
4273
  up
4273
 
    modprobe -q -b ipv6 || true
 
4274
    modprobe -q net-pf-10 > /dev/null 2>&1 || true # ignore failure.
4274
4275
    ip tunnel add %iface% mode sit remote %endpoint% [[local %local%]] \
4275
4276
       [[ttl %ttl%]]
4276
4277
    ip link set %iface% up