Relay Informations

relay-information hex 0106000400010000020800060012d9b28bc0

Circuit ID Remote ID

Suboption type (1)	Length (1)	CirtuitID Type (1)	Length(1)	Vlan(2)	Module(1)	Port(1)
01	06	00	04	0001	00	00

Suboption type(1)	Length (1)	RemoteID Type(1)	Length(1)	MAC Adress(6)
02	08	00	06	0012d9b28bc0

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2950/12122ea2/2950scg/swdhcp82.htm#wp1069615

Conclusion : passer du vlan 1 au vlan 10 :

0106000400010000020800060012d9b28bc0

01060004000A0000020800060012d9b28bc0

dhcp fixed ip assignement by agent.circuit-id :

# vlan 123 ?
if (extract-int(substring(option agent.circuit-id, 2, 2),16) = 123 )
{
log ( info, " DEBUG-CID: vlan studio prevost " );
# switch prevots1 (Base ethernet MAC Address: 00:15:69:33:8F:80)
if (substring(option agent.remote-id, 2, 6) = 00:15:69:33:8F:80)
{
log ( info, " DEBUG-CID: switch prevots1 " );
#interface 1 (index 0...)
if (binary-to-ascii (10, 8, "/", suffix ( option agent.circuit-id, 2)) = "0/1") {
local-place = "prevost-studio1";
}
if (binary-to-ascii (10, 8, "/", suffix ( option agent.circuit-id, 2)) = "0/2") {
local-place= "prevost-studio2";
}
}
}
class "prevost-studio1" { match if local-place = "prevost-studio1"; }
class "prevost-studio2" { match if local-place = "prevost-studio2"; }
shared-network vlan123
{
# prevost-hc
subnet 147.210.7.64 netmask 255.255.255.224
{
authoritative;
option domain-name "u-bordeaux.fr";
option routers 147.210.7.94;
option broadcast-address 147.210.7.95;
pool { allow members of "prevost-studio1"; range 147.210.7.65; }
pool { allow members of "prevost-studio2"; range 147.210.7.66; }
}
}

Laurent Facq

2005-05-27T05:45:32