how to run relay with same interfaces?

Glenn Satchell glenn.satchell at uniq.com.au
Thu Jun 28 07:22:24 UTC 2012


The -I option is only used in ipv6 mode, so can be left out. Likewise the
-i options select interfaces to listen on. The default is to listen on all
interfaces, so this is what you usually want.

Perhaps try:

./dhcrelay -4 -d 44.44.4.1

The code opens the raw socket interface, so there is no difference between
eth0 and eth0:1 (they both use the same raw device).

regards,
-glenn

> Hi all,
> Consider the test setup below.
>
> Server--------------Cisco switch--------------Relay
>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Windows
> PC
>
>
> For server the interface is eth0
> For relay it needs two interfaces so I have two interfaces like eth0 and
> eth0:1(virtual interface)
>
> ifconfig in server side:
> ---------------------------
> # ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:60:43:60:A6:4A
>           inet addr:44.44.4.1  Bcast:44.255.255.255  Mask:255.0.0.0
>           inet6 addr: 3ffe:501:ffff:117::/64 Scope:Global
>
> ifconfig in relay side
> ----------------------------
> eth0      Link encap:Ethernet  HWaddr 00:60:43:80:41:7E
>           inet addr:55.55.5.1  Bcast:55.255.255.255  Mask:255.0.0.0
>           inet6 addr: fe80::260:43ff:fe80:417e/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108977 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:44065 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:256
>           RX bytes:80418517 (76.6 MiB)  TX bytes:3267555 (3.1 MiB)
>
> eth0:1    Link encap:Ethernet  HWaddr 00:60:43:80:41:7E
>           inet addr:44.44.4.10  Bcast:44.255.255.255  Mask:255.0.0.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>
> Server running fine and waiting for packets.
> But while running relay it throw error below.
>
> ./dhcrelay -4 -d -i eth0:1 -I eth0 44.44.4.1
> Internet Systems Consortium DHCP Relay Agent 4.2.3
> Copyright 2004-2011 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
> Bind socket to interface: No such device
>
>
> I would like to know whether ISC code allow to run relay with same
> interfaces????
> Even though I created two interfaces like eth0 ans eth0:1(virtual
> interfaces),its throwing error.
> Please let me know.
>
>
> Ameen
>




More information about the dhcp-users mailing list