Source :
!
hostname RTR-1
!
boot-start-marker
boot-end-marker
!
logging buffered 64000 informational
no logging console
!
interface FastEthernet0/0
description LAN
ip address 172.16.29.250 255.255.255.0
ip helper-address 172.18.1.130
ip helper-address 172.18.1.127
ip tcp adjust-mss 1350
speed 100
full-duplex
!
line vty 0 4
exec-timeout 30 0
transport input telnet ssh
transport output telnet ssh
!
end
Output:
interface FastEthernet0/0
ip helper-address 172.18.1.130
ip helper-address 172.18.1.127
Or:
!
hostname RTR-1
!
boot-start-marker
boot-end-marker
!
logging buffered 64000 informational
no logging console
!
interface Vlan1
description LAN
ip address 172.16.29.250 255.255.255.0
ip helper-address 172.18.1.130
ip helper-address 172.18.1.127
ip tcp adjust-mss 1350
speed 100
full-duplex
!
line vty 0 4
exec-timeout 30 0
transport input telnet ssh
transport output telnet ssh
!
end
Output:
interface Vlan1
ip helper-address 172.18.1.130
ip helper-address 172.18.1.127
I exactly want to extract the name of interface in which command "helper-address" is configured.
The above source output is stored in file or can be extracted directly from live router