mirror of
https://github.com/GNS3/gns3-registry.git
synced 2025-04-27 14:30:06 +00:00
fix: extend SNMP view to mib-2; in boot.sh add hostname to DHCP client
This commit is contained in:
parent
1b0756b2d2
commit
5e55f095b9
@ -65,8 +65,10 @@ until [ $x -eq $NUM_BR ]; do
|
|||||||
ip link set dev br$x up
|
ip link set dev br$x up
|
||||||
x=$((x+1))
|
x=$((x+1))
|
||||||
done
|
done
|
||||||
|
HOSTNAME=`hostname`
|
||||||
|
echo "$HOSTNAME"
|
||||||
|
|
||||||
/sbin/udhcpc -R --timeout=1 --tryagain=1 -b -p /var/run/udhcpc.$MGMT_IF.pid -i $MGMT_IF
|
/sbin/udhcpc -R --timeout=1 --tryagain=1 -b -p /var/run/udhcpc.$MGMT_IF.pid -i $MGMT_IF -F $HOSTNAME
|
||||||
|
|
||||||
|
|
||||||
if [ -n "$LLDP_CHASSIS_ID" ]; then
|
if [ -n "$LLDP_CHASSIS_ID" ]; then
|
||||||
|
@ -7,10 +7,18 @@
|
|||||||
# listen on all IPs, default port
|
# listen on all IPs, default port
|
||||||
agentAddress udp:161
|
agentAddress udp:161
|
||||||
|
|
||||||
|
# mib-2
|
||||||
|
view publicview included .1.3.6.1.2.1
|
||||||
|
|
||||||
# system
|
# system
|
||||||
view publicview included .1.3.6.1.2.1.1
|
#view publicview included .1.3.6.1.2.1.1
|
||||||
|
|
||||||
# interfaces
|
# interfaces
|
||||||
view publicview included .1.3.6.1.2.1.2
|
#view publicview included .1.3.6.1.2.1.2
|
||||||
|
|
||||||
|
# dot1dBridge
|
||||||
|
#view publicview included .1.3.6.1.2.1.17
|
||||||
|
|
||||||
# LLDP
|
# LLDP
|
||||||
view publicview included .1.0.8802.1.1.2
|
view publicview included .1.0.8802.1.1.2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user