Debian Configuration :: Determine IP Address In Post-up Command?
Mar 22, 2010Is there any elegant (and preferably uniform) way to determine IP address assigned to a DHCP/PPP interface inside a post-up command?
View 2 RepliesIs there any elegant (and preferably uniform) way to determine IP address assigned to a DHCP/PPP interface inside a post-up command?
View 2 RepliesIs there any elegant (and preferably uniform) way to determine IP address assigned to a DHCP/PPP interface inside a post-up script/command?
View 9 Replies View Relatedi have the basic knowledge of networking. a week ago i installed debian Lenny version on an old pentium 3. in addition i installed a ddclient configured it according to many tutorials.i searched google a few days but didnt find my case. i ran the folowing command :
ddclient -daemon=0 -debug -verbose -noquiet
output:
debian:~# ddclient -daemon=0 -debug -verbose -noquiet
=== opt ====
opt{cache} : <undefined>
[Code]...
i installed ddclient before installing apache. the 10.0.0.10 address is the server address in my d link router behind NAT.
i am new to linux . i have the basic knowledge of networking. a week ago i installed debian Lenny version on an old pentium 3.in addition i installed a ddclient configured it according to many tutorials....i searched google a few days but didnt find my case.i ran the folowing command :
ddclient -daemon=0 -debug -verbose -noquiet
output:
debian:~# ddclient -daemon=0 -debug -verbose -noquiet
[code]...
The install auto-config has always worked for me. On this laptop, I needed some firmware, however. I think I've got the firmware installed, but I now need to get the wireless set up. The post-install network configuration tools I've seen thus far are intimidating, unlike the simple during-install config.
View 4 Replies View RelatedHow do I determine which nVidia kernel to use with my system? I'm running a GeForce9800GT
View 11 Replies View RelatedI cannot find a bash command: "file" !
It say "-bash: file: command not found"
"file" is used to determine file type on a bash right ? is there a package i have to install ? deprecated ?
I use debian wheezy distro
After GRUB 2 comes up (I'm running Ubuntu 10.10) and I choose the OS to boot, there is about a 5 second delay where nothing appears to happen after I make the selection -- no disk activity. It happens consistently every time I boot. Again, this is after I choose the OS to boot, so it shouldn't have anything to do with the standard delay to allow me to choose the appropriate OS.Is there a good way to troubleshoot this and determine what is causing the delay?
View 4 Replies View RelatedI'm just an undergrad with duck tape and google searches to hold this place together. Anyways on to my question. Where I work, we have a tape library but no way to configure it, the backup software simply talks to the robot to load and unload tapes. There is a network port on the library and I do have the software, but have been running into problems getting access. I was wondering, is there a way to determine the ip address of this machine by plugging in a cross over cable with a laptop and scanning it? What tools could I use to do this?
View 5 Replies View RelatedI installed squeeze on virtualbox on arch linux.After squeeze is booted up, ifconfig says no ip address is given to eth0.I tried ifdown/up eth0, then an ip address was properly given.Does anyone have the same problem or know how to solve this?The network of virtualbox is set to bridged adapter.The host os has only eth0, no br0 and wiredly connected to a wifi router which has the dhcpd.
View 4 Replies View RelatedI am tring to get my linksys wireless router to connect to my laptop that i recently installed Fedora 10 on. Well it is actully running of an external HD. Any way when i boot in windows it connects and works fine, but when i try to activate wlan0 it says "Cannot activate network divice wlan0!" "determining IP info failed..."
View 11 Replies View RelatedIn the terminal, what command can I use to find out the current ip address that my ISP allocates to me from their server to my router?
View 2 Replies View RelatedI had had my internet connection working using PPPoE, but after I did some tweaking and configuring on the machine (configuring Samba), I wasn't able to connect to the internet and on the syslog said:Code:Cannot determine ethernet address for proxy ARPI'm using dynamic IP address on my internet account. Is this problem related to Samba server configuration that is running?
View 2 Replies View RelatedWhen you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.
View 4 Replies View RelatedI got the Raspberry pi 2 Model B. I flashed my sdcard with raspberian Jessie kernel 4.1 (latest).Also tried wheezy and NOOBS, same behavior.With a ethernet cable (known working), I tried connecting my Pi to my home router, and I got a invalid ip address 169.254.xxx.xxx, and therefore no linkup. I got the same results by connecting my Pi directly to my modem (wired).
I know that /etc/dhcpd.conf is the new /etc/network/interfaces for network configurations.So I tried the debug option, and I noticed that the router doesn't seems to response to the DISCOVER command from the Pi (dhcp v4 protocol).Here's a dump of by /var/log/syslog | grep dhcp
Code: Select allDec 28 12:00:02 raspberrypi systemd[1]: Starting dhcpcd on all interfaces...
Dec 28 12:00:02 raspberrypi dhcpcd[349]: version 6.7.1 starting
Dec 28 12:00:02 raspberrypi dhcpcd[349]: udev: starting
Dec 28 12:00:02 raspberrypi dhcpcd[349]: dev: loaded udev
Dec 28 12:00:02 raspberrypi dhcpcd[349]: eth0: disabling kernel IPv6 RA support
[code]...
ANd if i use raspbian flesh out of installation, I get this when i run
dhcpcd -k
dhcpcd eth0
eth0: probing for an IPv4ALL address
eth0: using IPv4ALL address 169.154.202.224
Seems like my home router TP-link (default setup) doesn't send a response to the dhcp request.
My sources list for updates is a bit wonky as in needs the correct uk repositories listed, for Lenny main, could someone point me to where I can find the uk repositories so I can enter then in the software sources option from the menu?
View 2 Replies View RelatedThis is embarrassing. I can't get a wireless address from my router with dhclient. The distribution is sid/lxde/liquorix kernel with no network manager on /dev/sdb1.
root@sid:/home/jheaton5# dhclient -4 -v wlan0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
[code]....
I'm running gnome desktop on squeeze system. When I boot my system seems to be using my internet modem as its dhcp server. The rest of the machines on my lan are correctly using my router for that purpose. As a result, what happens then is that my debian machine frequently gets a duplicate ip address assigned to it. I would like to specify to my debian computer that I want it to use the specific fixed ip address of my router for dhcp purposes.
View 9 Replies View RelatedI have an HP Laserjet 3.I can use it in normal Windows mode, or as a Postscript printer.it is an older printer, but it is still listed in the driver database. The cups setup tool cannot autodetect this printer. Also, if I select the actual driver for this printer, the cups tool still reports that no printer has been selected. I cannot add that driver for some reason. So, now I have to become an expert in cups configuration. Where is the cups HOWTO? Not in the SuSE howto section. Online? A little support there, but not SuSE specific. Does this local printer need to be a "network" printer? If so, how to I determine what internet address to use?
View 5 Replies View RelatedGot this while installing the kernel development tools on my Squeeze system being used as a router/firewall. Setting up update-inetd (4.36) ... Setting up cvs (1:1.12.13-12) ... Ignoring install-info called from maintainer script The package cvs should be rebuilt with new debhelper to get trigger support Ignoring install-info called from maintainer script The package cvs should be rebuilt with new debhelper to get trigger support Setting up autopoint (0.17-11) ...
Is that an issue that I need to address prior to building the latest kernel (2.6.33.4)?
Hey guys. I have a client computer PXE booting from my host computer and it is supposed to give the client the ip address 172.16.0.100 however instead it gives it the ip address 172.16.0.208.
I have this set up working with two other computers and there is no noticeable difference other than mac addresses for the network card.
Here is an extract from my '/etc/dhcp3/dhcpd.conf' file...
ddns-update-style-none;
option domain-name "example.org";
default-lease-time 600;
max-lease-time 7200;
[Code]....
I have quadruple checked the mac address of the client and it is definitely "00:07:E9:32:16:81" so why is it not giving it the IP address that I have specified?
First, (for samba) how do I determine whether my computer "gets IP address information from a dhcp server on the network," and whether "the dhcp server provides info about WINS servers ("NetBIOS name servers") present on the network," and consequently whether a change to my smb.conf file, "so that DHCP-provided WINS settings will automatically be read from /etc/samba/dhcp.conf," and whether the dhcp3-client package must be installed?
View 2 Replies View RelatedI want to configure multiple virtual ethernet interfaces over a single physical ethernet interface (eth0) and for each virtual interface the MAC address must be unique and the IP address must be Static.Finally all the virtual interfaces must be able to communicate both internally and externally and the traffic should be captured using wireshark.
I need to have such kind of setup to communicate devices individually using one physical ethernet device.
Because I was fiddling with few kernel modules like MACVLAN and MACVTAP and successfully enabled those modules and rebuild kernel. Using macvlan and macvtap I can configure virtual interfaces with unique mac address and static IPs but while capturing packets using wireshark interfaces behave weirdly.
For example say on HOST machine I have 1 physical interface and created 3 virtual interfaces as shown below.
Interfaces :
eth0 (physical ethernet interface)
IP: 192.168.A.A
MAC: aa:aa:aa:aa:aa:aa
[Code] ....
First from above interfaces I started pinging eth0 internally from host machine in which it worked as usually.
Second I did same externally from other machine which is connected to the same network of Host machine, and this did work as usually.
Third I pinged first virtual interface veth0 both internally and externally and this also works and after that I did check source and destination MAC address using wireshark tool-where both showed up there respective MAC address.
Now triggers the issue, where I pinged second virtual interface same like I did for first one, but this time ping was success and where as in wireshark tool the MAC address for veth0 is picked by veth1. This is where I got stuck and this issue happened for all the remaining virtual interfaces.
I couldn't see any virtual interface showing their respective MAC address, as of the remaining except the first virtual interface has been picking the first veth0 mac address.
I have Debian 8.2 with KDE 4.14 and everything runs perfect, except for the internet connection. This problem happens randomly when I turn on my machine. Sometimes when the desktop loads, the connection is already settled.
But sometimes when the desktop loads, the wifi icon is still loading and keeps stuck at "setting network address". Since this problem happens randomly I really don't know what is happening here. My wifi chip is this:
Code: Select all01:00.0 Network controller: Intel Corporation Centrino Wireless-N 130 (rev 34)
This is the problem:
I installed Debian with non-free firmware because of this chip.
I want to restrict the access to my local web server by IP address. Im in a LAN (192.168.200.xx) so i have this:
[code]....
But when i try to connect from 192.168.200.4 it says i don't have permission to access
I want to pass ip address,port address and some parameters from command line using python script.The ip address and port address for establishing socket connection and remaining parameters to execute different connection.
View 1 Replies View RelatedFirstly I would like to say that Linux is very cool, especially the CLI. I have been trying to learn how to do some things in Fedora after being told Fedora was a good distro to get my feet wet. I have run into some issues and cant seem to find any answers. What Linux utility can be configured to automatically save the current logs?
How does your Fedora get an IP number? What IP numbers has your Fedora been assigned since it was installed (based on the logs you have)? What command did you run to determine the IP numbers? What command would you run to determine the number of times a user successfully used "su"? What command would you run to determine the number of times a user unsuccessfully used "su"? Having some issues with the file system as your Fedora boots up.
Let's say I have a bash script called log.sh. In this script, I want to read in input from a pipe, but I also want to know the command used to pipe input into me. Example:
tail -f /var/log/httpd/error | log.sh
In the shell script, I want to know the command tail -f /var/log/httpd/error.
Is there a linux/unix command that will return where a domain is hosted at? Basically, the command that is used for [URL]?
View 1 Replies View RelatedI added by error a fresh physical volume of a volume group to a logical volume:
lvextend /dev/lvm/logo /dev/md4
Is there a way to remove the physical volume /dev/md4 from /dev/lvm/logo again without harming the existing file system? I did not resize the file system yet.
I am looking for something like
lvreduce /dev/lvm/logo /dev/md4
but lvreduce only works with the -l or -L options as far I can see. So how can I ensure that only extends located on /dev/md4 are removed from /dev/lvm/logo?
This is the current situation:
Finding all volume groups
Finding volume group "lvm"
--- Volume group ---
VG Name lvm
[Code]....