#cisco
02 January 2008
Total 19 pages. You are browsing page 2/19.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
01:21 <****> 25 years of tcpip
01:22 <****> thats pretty cool
01:56 <****> lawl at ipv6 addy^
02:01 <****> hey guys, i'm trying to set a default route in eigrp and cant seem to get it working
02:02 <****> i get 0.0.0.0/0 route to show up in the domain, but cant ping addresses behind the router advertising the default route
02:05 <****> any ideas?
02:05 <****> matt: http://www.cisco.com/warp/public/105/default.html#protocols
02:07 <****> ah, ok, the default network is only in bgp, not eigrp
02:08 <****> how do I write a regular expression to search for ip address, if i have the /27 say. not to many hosts, so i want to do like
02:08 <****> 10.10.10.(1 or 2 or 3 or 4), so i thought it was grep -e 10.10.10.(1|2|3). but don't i have to escape the .'s cuz they mean something
02:10 <****> dwxreaper, you aren't making any sense
02:14 <****> because i don't know how to write the expression, but i want 10.10.10.(1 or 2 or 3 or 4)
02:15 <****> 10\.10\.10\.(1|2|3)
02:15 <****> sartan, that's what I tried, grep -e didn't like it, maybe it's the wrong grep command
02:16 <****> i just did grep -e 10\..... file
02:16 <****> what unix OS are you using?
02:16 <****> read your man page
02:17 <****> diff greps for diff variants
02:18 <****> i did -e sounds right, ubuntu
02:18 <****> i'll just do it one by one, no big deal
02:18 <****> pastebin your shell script
02:19 <****> ok
02:20 <****> dwxreaper: did you use quotes ?
02:21 <****> hi all
02:21 <****> how to check if my cisco 1600 series have support for X.25 ?
02:22 <****> dwxreaper: egrep "10\.10\.10\.(1|2|3)"
02:22 <****> no quotes, that's probably why , ty
02:23 <****> i tried, in fact egrep works, but not grep -e
02:23 <****> hi guys
02:24 <****> there are a few grep pattern regular expression methods, -E,-e,-R-r, default. one is perl, one is standard,one is extended
02:24 <****> dwxreaper: cat file | perl -nle 'print if /10.10.10.(1|2|3)/'
02:24 <****> i tried a couple it didn't seem to work, i'll try egrep
02:26 <****> on some systems egrep isn't quite grep -E
02:26 <****> well i just tried that one mplex, and it works
02:27 <****> gadi_: show version.
02:27 <****> but i have to run two, which isn't a big deal, i have to run two because i go past 10.10.10.9.. so to .10,.11.12
02:27 <****> yea I just made it up, heh
02:27 <****> I've managed to pickup a 2523 router, when it finally turns up I plan to update the version of running IOS, as I dont have any devices on my network with token ring interfaces, is my only option to update the ios is using xmodem?
02:27 <****> how would i match the next
02:27 <****> mplex, like say i want 20-34 in the last octet
02:28 <****> ['20'-'34] or double quotes?
02:28 <****> that Id need my book for
02:28 <****> that might work
02:28 <****> I know [1-3] but I dont know host to do multiple digits
02:28 <****> yeah, i see examples but not for multiple digits
02:29 <****> twkm thanks!
02:30 <****> mplex: you'd need a more complex expression. [20-34] just means digits 0, 1, 2, 3 or 4.
02:30 <****> yeah, it's matching everything in the last octet containing digits in my brackets
02:30 <****> even with quotes, let me try single quotes
02:30 <****> http://www.thescripts.com/forum/thread50416.html
02:30 <****> looks nasty
02:31 <****> [2-3][0-9], except that means 20 - 39
02:31 <****> oh yeah, sounds right, let me try
02:31 <****> ([2][0-9]|[3][0-4]) would do it
02:31 <****> except you then have OR expression in the equation
02:31 <****> trying to validate an ip address in shell script is generally a mistake, hand it off to a tool that expects an ip address and will produce an error if it isn't valid.
02:32 <****> ok, well, let me give you the real numbers, i need 193-222 in the last octet
02:33 <****> I like /^(\d+)(\.\d+){3}$/
02:33 <****> its not perfect but close enough
02:33 <****> so [1|2], then i'm stuck..
02:34 <****> maybe something like this: (1[1-9]|2[1-4])
02:34 <****> [1|2][9|0|1|2][2-9]?
02:35 <****> that misses .201,211,
02:35 <****> mplex: thats what i said pretty much
02:35 <****> except it has an OR operator in there now
02:36 <****> rather than just a single context matching logic
02:36 <****> yea its the same
02:37 <****> so what work exactly?
02:37 <****> i can't read the perl regular expressions, i think that's what you're writing
02:37 <****> well for one I did 1-9 instead of 0-9
02:38 <****> i see what you are doing, does it work like that
02:38 <****> it's different numbers to though 193-222
02:38 <****> in the last octet
02:39 <****> whats your current expression and what range do you want to match again?
02:41 <****> x.x.x.19(3|4|5|6)/'
02:41 <****> but i need to matc 193-222 in the last octet
02:41 <****> ugh. horrible.
02:48 <****> is there an AND operator with regex?
02:49 <****> regular expressions are not logical expressions
02:51 <****> but there are or's regarding matching in regex
02:51 <****> and and's, depends how you look at it
02:52 <****> I hate you people
02:52 <****> why do you get to work with cooler things
02:52 <****> AHHHHHHHHHHHHHHHHHH
02:52 <****> CuriousX10: ?
02:52 <****> ah never mind
02:53 <****> hi curiouscat
02:53 <****> 193 && $1 < 222)'
02:54 <****> there's no easy regex until perl6
02:55 <****> mplex, 1 sek
02:56 <****> heh got a working one grep -E "x\.x\.x\.19([3-9]|[
02:56 <****> 2[01][0-9]|22[0-3])"
02:57 <****> i can't understand the perl at all :(
02:57 <****> its worth figuring out
02:58 <****> makes more sense then the grep one
02:58 <****> :P
02:58 <****> atleast looks wise
03:00 <****> I need to learn TCL but I cant bring myself to like it
03:01 <****> i don't like things that look different than bash or c, but that's because i know bash and c
03:01 <****> which is weird because it's one extreme to the other
Total 19 pages. You are browsing page 2/19.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
