Re: restarting network
On Tue, Mar 29, 2016 at 02:10:08PM +0100, Tony van der Hoff wrote:
> On 29/03/16 14:00, Brian wrote:
> >On Tue 29 Mar 2016 at 13:37:19 +0100, Tony van der Hoff wrote:
> >
> >>On 29/03/16 12:58, pedantsunited wrote:
> >>>On Tue 29 Mar 2016 at 11:14:56 +0100, Tony van der Hoff wrote:
> >>>
> >>>Any chance of seeing /e/n/i?
> >>>
> >>Not until you explain what you're talking about
> >
> >/etc/network/interfaces
> >
>
> Ah, OK:
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> #allow-hotplug eth0
> auto eth0
> iface eth0 inet static
> address 192.168.1.7
> netmask 255.255.255.0
> network 192.168.1.0
> broadcast 192.168.1.255
> gateway 192.168.1.1
> ## up ip addr add dev eth0 2001:8b0:ff60:6a91::7
> ## up ip route add default via fe80::1 dev eth0
You probably want to do the IPv6 part this way:
iface eth0 inet6 static
address 2001:8b0:ff60:6a91::7
gateway fe80::1
## but note that you need to establish reachability to fe80::1
## first.
> auto eth1
> iface eth1 inet static
> address 192.168.2.8
> netmask 255.255.255.0
> network 192.168.2.0
> broadcast 192.168.2.255
> gateway 192.168.1.1
> up ip addr add dev eth1 2001:8b0:ff60:6a91::8
> up ip route add default via fe80::1 dev eth0
>
> # dns-* options are implemented by the resolvconf package, if installed
> dns-nameservers 192.168.1.1
> dns-search magpieway.net
You could consolidate your dns control statements here, or just
put them all into /etc/resolv.conf and not make them dynamic, if
that's suitable.
-dsr-
Reply to: