| PLEX86 | ||
|
A Cfunction to get the ip address where the executable is running. 114
Sure. Video .mpg.avi to iPod .mp4 converter On Wed, 11 Jan 2006 16:47:28 -0500, William Park Lucky. Who (in your position) wouldn't. :) To answer your first question, yes. Now, you'll probably... 1) You can buttign as many IP addresses to a NIC as you want. Usually a NIC has only one IP address, but sometimes it's useful for one to have two or more (when you're running multiple subnets on a single physical network). 2) Hosts generally have a "loopback" interface in addition to any "physical" Ethernet NIC. That interface can also have as many IP addresses as you want. 3) There have been times in the past when I found it useful to have a "dummy" interface. And that interface can, as you guessed by now, have as many IP addresses as you want. 4) In addition to loopback and dummy interfaces, there are also other "virtual" interfaces like PPP connections, VPN connections, IP6-tunnelled-inside-IP4, and so on. Booting Win2k with grub 120 On Thu, 12 Jan 2006 00:31:30 GMT, imotgm staggered into the Black Sun and said: This is not really a good idea. Put the 'Doze... Here's my current setup. It's probably similar to most machines with a single NIC: # ifconfig eth0 Link encap:Ethernet HWaddr 00:11:09:64:D7:68 plus 1 inet addr:10.1.1.19 Bcast:10.255.255.255 Mask:255.0.0.0 inet6 addr: fe80::211:9ff:fe64:d768 plus 1-64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13858335 errors:0 dropped:0 overruns:0 frame:0 TX packets:17617866 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 Interrupt:11 Base address:0xc000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1-128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:628858 errors:0 dropped:0 overruns:0 frame:0 TX packets:628858 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 My machine currently has two IP addresses: 10.1.1.19 127.0.0.1 But, after I execute this command # ifconfig eth0:0 192.168.99.99 scp a file wo pbuttword FROM remote to local 116 Are you sure that copying the file is the right way to approach the problem... I get this: # ifconfig eth0 Link encap:Ethernet HWaddr 00:11:09:64:D7:68 plus 1 inet addr:10.1.1.19 Bcast:10.255.255.255 Mask:255.0.0.0 inet6 addr: fe80::211:9ff:fe64:d768 plus 1-64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13858345 errors:0 dropped:0 overruns:0 frame:0 TX packets:17617876 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 Interrupt:11 Base address:0xc000 eth0:0 Link encap:Ethernet HWaddr 00:11:09:64:D7:68 plus 1 inet addr:192.168.99.99 Bcast:192.168.99.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 Interrupt:11 Base address:0xc000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1-128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:628858 errors:0 dropped:0 overruns:0 frame:0 TX packets:628858 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 scp a file wo pbuttword FROM remote to local I have an Apache server and a seperate mySQL server. A PHP script on the Web server runs a SQL "INTO OUTFILE" which creates a file... My machine now has three IP addresses: 10.1.1.19 129.168.99.99 127.0.0.1 # ifconfig eth0:1 1.2.3.4 Now it's got four: eth0 Link encap:Ethernet HWaddr 00:11:09:64:D7:68 plus 1 inet addr:10.1.1.19 Bcast:10.255.255.255 Mask:255.0.0.0 inet6 addr: fe80::211:9ff:fe64:d768 plus 1-64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13858375 errors:0 dropped:0 overruns:0 frame:0 TX packets:17617941 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 Interrupt:11 Base address:0xc000 eth0:0 Link encap:Ethernet HWaddr 00:11:09:64:D7:68 plus 1 inet addr:192.168.99.99 Bcast:192.168.99.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 Interrupt:11 Base address:0xc000 eth0:1 Link encap:Ethernet HWaddr 00:11:09:64:D7:68 plus 1 inet addr:1.2.3.4 Bcast:1.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 Interrupt:11 Base address:0xc000 problem with tuner card miro pctv I've ever used this tuner card with other linux versions, but I cannot do the same with Linux Fedora Core 4 :( I tried to... lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1-128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:628858 errors:0 dropped:0 overruns:0 frame:0 TX packets:628858 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 # ifconfig eth0:0 down # ifconfig eth0:1 down scp a file wo pbuttword FROM remote to local 117 Hi Liam, URL: Content: Overview of ssh Ssh sets up a secure connection for logging into a remote machine and for executing... Now it's got two again. -- Grant Edwards grante Yow! TATTOOED MIDGETS at are using ALFREDO in their visi.com SALAMI FACTORY!
|
||||||||||