Thursday, April 25, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 60910  / 2 Years ago, wed, june 1, 2022, 2:51:23

I just installed ubuntu 12.04.1 alternative install (for raid 0 on some disks). I Have some problems with the net. I'm at school, we use cable, and it got IPv6.



If I run ifconfig eth0 heres my output:



eth0      Link encap:Ethernet  HWaddr e0:cb:4e:87:ff:db  
inet addr:128.39.194.217 Bcast:128.39.194.223 Mask:255.255.255.224
inet6 addr: 2001:700:1100:8008:e2cb:4eff:fe87:ffdb/64 Scope:Global
inet6 addr: fe80::e2cb:4eff:fe87:ffdb/64 Scope:Link
inet6 addr: 2001:700:1100:8008:48f7:c23:1d87:da6c/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1063378 errors:0 dropped:0 overruns:0 frame:0
TX packets:489811 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1577173461 (1.5 GB) TX bytes:37043669 (37.0 MB)
Interrupt:68 Base address:0x6000


My /etc/network/interfaces look like this:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface

auto lo
iface lo inet loopback
# The primary network interface
auto eth0
# NetworkManager#iface eth0 inet dhcp
# NetworkManager#hostname 2001:700:1100:1::4
# This is an autoconfigured IPv6 interface
iface eth0 inet6 auto


(I had to remove the hash tags, because of the BIGFONT i get on ask ubuntu)



The "network manager" says that I'm not connected.



Let me know if you need any more information. :)


More From » network-manager

 Answers
3

Ok so I have a way better answer then I had before.



How about we try this.



Open a terminal.



gksu gedit /etc/rc.local


Add: sudo dhclient eth0 like so.



#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo dhclient eth0
exit 0


Save & Close. Reboot and should work.


[#35323] Thursday, June 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ormlai

Total Points: 292
Total Questions: 106
Total Answers: 115

Location: Cape Verde
Member since Fri, Sep 16, 2022
2 Years ago
ormlai questions
Wed, Sep 28, 22, 00:17, 2 Years ago
Sun, Aug 7, 22, 22:05, 2 Years ago
Wed, Jun 16, 21, 03:50, 3 Years ago
Sun, Feb 6, 22, 09:11, 2 Years ago
Mon, Jul 12, 21, 10:00, 3 Years ago
;