File: release.2.10.02-interface.html

package info (click to toggle)
ircd 2.10.04-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,248 kB
  • ctags: 2,145
  • sloc: ansic: 26,591; makefile: 666; sh: 418; perl: 18
file content (58 lines) | stat: -rw-r--r-- 2,346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<HTML>
<HEAD>
<TITLE>The interface to bind to, can now be specified on the command line</TITLE>
</HEAD>
<BODY>
<H2>The interface to bind to, can now be specified on the command line</H2>
<P>
If you specified `y' (yes) to the configuration question during `<EM>make config</EM>'
wether or not you wanted <B>VIRTUAL HOSTING</B>, then now you can specify
the interface that you want the daemon to bind to by IP-number on the
command line.
<P>
Example:
<PRE>
$ ircd -w 123.456.789.012
</PRE>
<P>
The given parameter must resolv with gethostbyname(3).
<P>
You can use the UNIX command `<EM>ifconfig -a</EM>' to find out which interfaces
you have and what the IP-number of these interfaces is.  For example:
<PRE>
$ ifconfig -a
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:7722 errors:0 dropped:0 overruns:0
          TX packets:7722 errors:0 dropped:0 overruns:0

dummy     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:194.109.13.237  Bcast:194.109.13.237  Mask:255.255.255.255
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          No statistics available.

eth0      Link encap:Ethernet  HWaddr 00:60:8C:92:A1:FC
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5066928 errors:0 dropped:0 overruns:0
          TX packets:1890010 errors:0 dropped:0 overruns:0
          Interrupt:10 Base address:0x300

ippp0     Link encap:Point-to-Point Protocol
          inet addr:194.109.13.237  P-t-P:194.109.6.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
          TX packets:0 errors:0 dropped:0 overruns:0
</PRE>
Shows that I have four interfaces with three different the IP-numbers: 
 127.0.0.1, 194.109.13.237 and 192.168.1.1.

If no -w command line option is given, the daemon falls back to trying
to resolve the servername as specified in the M: line.
<P>
<HR>
<ADDRESS>Questions and comments about this page should go to the maintainter:
Carlo Wood <EM>(Run @ IRC)</EM> <A HREF="mailto:carlo@runaway.xs4all.nl">&lt;carlo@runaway.xs4all.nl&gt;</A>.</ADDRESS>
</BODY>
</HTML>