Parsing subnet
|
2016-10-18, 18:18
Post: #2
|
|||
|
|||
RE: Parsing subnet
(2016-10-18 15:44)Yeswanth Wrote: I have a query. I want to get the first three numbers from the subnet mask. (assuming that you ment to type netX/ip and not net0/netmask, or that the mask actually is a valid mask?) There is no way inside of iPXE (yet) to parse parts of anything. The recommended way if you really need this is to do it server side, that is doing chain http://server/script?ip=${netX/ip} Which in turn returns something like Code: #!ipxe but most of the time when someone asks similar things about getting part of ip, normally it is for some kind of logic where gateway or dns would make more sense to use. What will you use this 3octet mask for? Use GitHub Discussions VRAM bin |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Parsing subnet - Yeswanth - 2016-10-18, 15:44
RE: Parsing subnet - NiKiZe - 2016-10-18 18:18
RE: Parsing subnet - Yeswanth - 2016-10-19, 03:10
RE: Parsing subnet - NiKiZe - 2016-10-19, 07:15
|
User(s) browsing this thread: 1 Guest(s)