Tag Info

Hot answers tagged

32

For finding the external ip, you can either use external web-based services, or use system based methods. The easier one is to use the external service, also the ifconfig based solutions will work in your system only if you're not behind a NAT. the two methods has been discussed below in detail. Finding external IP using external services The easiest way ...


9

You can spend a week finding everything that's missing or you can spend an hour just doing a reinstall from CD and then getting all your old packages back. I'd suggest you boot into a LiveCD environment first to get backups of things first (copy them to an external USB drive, or another partition) and then start again.


6

If you want to override or append to the name servers suggested by the DHCP server, you can configure this in /etc/dhcp/dhclient.conf, eg: interface "eth0" { prepend domain-name-servers 10.0.0.2; } You can also do this from the "Edit Connections" control in the network indicator in Unity or GNOME.


6

Why use DHCP? It's the standard way of running a network. Any computer that you bring into your network will run as soon as it connects to it (either wire or wireless). Your computer will also automatically connect to most networks. You should use DHCP as the default way to configure a network, unless you have some specific needs. Even in a medium or ...


6

The kernel incorrectly matches this NIC with the r8169 kernel module. This is shown by the lshw trace where it shows that the NIC has been disabled. According to this article, the NIC should be associated with the r8168 kernel module. With the incorrect kernel module you will either get slow speeds or no connection what-so-ever. According to Launchpad - ...


5

edit /etc/network/interfaces and change the IP's below to suit your needs. once complete, /etc/init.d/networking restart auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.0.1.14 netmask 255.255.255.0 network 10.0.1.0 broadcast 10.0.1.255 gateway 10.0.1.1 subnet 10.0.1.0/24


5

Based on the stack trace at http://silenzio.dk/pi/dhc.strace the first SIOCSIFADDR: Permission denied error occurs at line 735, during execution of process 26092: ifconfig eth2 inet 0 up. Now only root can ifconfig something up, so let's trace the chain of fork()/exec() and look for UID changes. It turns out that: process 26092 is a child of 26090 (line ...


5

The problem is that with the new dhcp3 server that the config files are done differently than on older installations. Now the installation is done under isc-dhcp-server the location of the dhcpd.conf file and interfaces has changed along with the mechanism to start stop the service. The dhcpd.conf file has moved from /etc/dhcp3/dhcpd.conf to ...


4

I can't guarantee it will work, but you could specify the options per subnet and not by group (though you'll lose assignment of the hostname - that's to be expected if you don't have a unique way (i.e. MAC) of identifying each system). allow booting; allow bootp; subnet 172.29.32.0 netmask 255.255.255.0 { next-server 172.29.32.9; filename ...


4

The dhcp3-server package has been transitioned to the new-style "ISC" DHCP package. This package is called isc-dhcp-server, and would have been installed when you installed dhcp3-server. The file you're looking for is now /etc/init.d/isc-dhcp-server. Note that you may use the service command to start and stop daemons: sudo service isc-dhcp-server restart ...


4

The package dhcp3-server was renamed some time ago to isc-dhcp-server. apt-cache search dhcp.-server isc-dhcp-server - ISC DHCP server for automatic IP address assignment dhcp3-server - ISC DHCP server (transitional package) ... Installing either dhcp3-server or isc-dhcp-server will have the same result. apt-case show dhcp3-server |grep ^Depends ...


3

You will need to edit this file with your favorite editor: sudo vim /etc/dhcp/dhclient.conf Once in file, you should see a commented line with the word supersede next to it: #supersede domain-name "...." Uncomment that line, substitute the name supersede for append, then add the domain names you wish to search (follow the example below and leave a ...


3

Based on these links: https://launchpad.net/ubuntu/+source/isc-dhcp dhcp3-client: ISC DHCP server (transitional package) dhcp3-common: ISC DHCP common files (transitional package) dhcp3-dev: ISC DHCP development files (transitional package) dhcp3-relay: ISC DHCP relay (transitional package) dhcp3-server: ISC DHCP server **(transitional package)** ...


3

I would suggest you to take a look to the man page of /etc/dhcp3/dhcpd.conf, which is the file you'll have to modify to correctly configure your dhcpd server. A basic file would look like this : DHCPDARGS=eth0; # to specify to which interface your dhcpd server have to listen subnet 192.168.0.0 netmask 255.255.255.0 { option routers ...


3

Since you've only deleted /usr/lib/* and not /lib/*, you can probably recover. I think all the programs you critically need to recover your system only use libraries from /usr/lib. Boot to a text login prompt. If the normal boot doesn't give you a login: prompt in text mode, boot with only minimum services. Press and hold Shift when your computer starts to ...


3

The issue lies in my iptables although I am not sure where. A clean sweep fixed it given to be my a gentleman on ubuntu forums. iptables --flush iptables --table nat --flush iptables --delete-chain # # iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A ...


3

Three options for you, ranging from manual-but-easy to manual-and-need-a-doctorate (in that progression). 1. Don't use DHCP. Allocate a static IP in your router (so it doesn't give that IP to another device) and then configure Ubuntu to use that static address. You can do that either with Network Manager (if you're using that) or by editing ...


3

Its not trivial at all. This old article, however, is still quite relevant. http://www.randombugs.com/linux/linux-isc-dhcp-server-dynamic-dns-updates-debian-ubuntu.html


3

I think you need Apple's 'Bonjour' for this, and it needs to be installed on the Host OS. as well as the Guest OS. It should be installed by default in Ubuntu. If it is already installed, accessing: http://hostname.local/ should work, where the hostname is the name you get at a CLI on the Guest OS, e.g.: username@hostname:~$ If you don't have 'Bonjour' ...


2

Here is a complete solution that works at least with 12.04: sudo nano /etc/dhcp/dhclient.conf # add next line (alternatively you can use append instead of prepend) prepend domain-name "example.com other.example.com"; # before: request subnet-mask... Now restart the networking: sudo /etc/init.d/networking restart


2

Edit /etc/network/interfaces to have a section like this: iface br0 inet static bridge_ports eth0 eth1 address 192.168.0.1 netmask 255.255.255.0 (This is assuming you are using 192.168.0.x addressses for you dhcp server.) Then you just use br0 instead of eth0 or eth1 when you are doing your configuration file. With this method, you don't need ...


2

You don't get your hostname from the DHCP server. You can send your hostname to the server, which may change the IP you're assigned. You can change what name is sent either by editing your Network Manager connection (the field is called DHCP Client ID) or you can edit (as root) /etc/dhcp/dhclient.conf. Look for the line that says: send host-name ...


2

You can get your hostname from your DHCP server - it is part of the DHCP specification. https://tools.ietf.org/html/rfc1533#section-3.14 "This option specifies the name of the client"


2

You can put scripts in /etc/network/if-up.d to be executed when an interface is activated (either by ifup or by Network Manager). These scripts receive information about the interface, including the environment variable $METHOD set to static or dhcp. This is documented in the interfaces(5) man page. #!/bin/sh ## This is ...


2

maybe you mean something like this... run nm-connection-editor , go to tab wireless, choose network that youre connecting to and then change method from dhcp to manual, click add, type your current IP, netmask and gateway, then add your dns servers. Your can find your current ip, netmask, dns etc if you right click on network-manager applet, then connection ...


2

That is actually not a problem in Ubuntu, but a problem with the configuration in the cafe. Not all cafes offer free, one click away internet connection. Cafes and Airports for example offer a website to which you connect (Tipically a 192.168.1.1, 10.0.0.1 or similar IPs) and in the web page the charge you with some credit point or credit card the time or ...


2

You could give bogus info for the initial setup, then once your system is installed, edit /etc/network/interfaces with something like: auto eth0 iface eth0 inet dhcp (You'd replace eth0 if it's different from your interface, of course.)


2

DHCP doesn't reliably give a domain name; but really a search domain for users to be able to quickly reach other systems by their short name rather than a full domain name. It should be up to the DHCP server to hand off IP addresses (and hostname) that will match what's in DNS, or to take the hostname passed by the machine to update DNS information. ...



Only top voted, non community-wiki answers of a minimum length are eligible