2 config_get ifname
"$1" ifname
3 ipoadev
="${ipoadev:-0}"
4 config_get unit
"$1" unit
6 config_set
"$1" ifname
"atm$ipoadev"
7 config_set
"$1" unit
"$ipoadev"
8 ipoadev
="$(($ipoadev + 1))"
12 setup_interface_ipoa
() {
16 config_get device
"$config" device
17 config_get vpi
"$config" vpi
19 config_get vci
"$config" vci
22 config_get encaps
"$config" encaps
24 1|vc
) ENCAPS
="vc-encaps" ;;
25 *) ENCAPS
="llc-encaps" ;;
28 config_get mtu
"$cfg" mtu
31 ifconfig
$device $ip netmask
$mask mtu
$mtu up
32 atmarp
-s $gw $vpi.
$vci null
33 route add default gw
$gw
This page took 0.043987 seconds and 5 git commands to generate.